DebugView

main

App debugging log on iPhone/iPad
huabin/DebugView

DebugView

App debugging log on iPhone/iPad

Why

As we all know, when testing apps on iPhone/iPad, checking the logs can be a real pain. This is mainly due to the extremely bad connection between iPhone/iPad and xcode.

This package just makes it as easy as possible to view the logs.

How to use

Coding

  • Import this package to your project

  • Initial

    import SwiftUI
    import DebugView
    
    @main
    struct yourApp: App {
        var body: some Scene {
            WindowGroup {
              ZStack {
                ContentView()
                DebugView()
              }
            }
        }
    }
    
  • Place it where you need

    import DebugView
    struct ContentView: View {
      // ...
      DebugLogger.shared.log("logs")
      // ...
    }
    

Device: iPhone/iPad

  • Click bug on the screen, and you will see all print logs.
debugviewdemo.mov

LICENSE

MIT, 2024-Present Bin Hua

Description

  • Swift Tools 5.10.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed May 14 2025 19:09:29 GMT-0900 (Hawaii-Aleutian Daylight Time)