https://github.com/tourcoder/debugview
App debugging log on iPhone/iPad
https://github.com/tourcoder/debugview
Last synced: 27 days ago
JSON representation
App debugging log on iPhone/iPad
- Host: GitHub
- URL: https://github.com/tourcoder/debugview
- Owner: tourcoder
- Created: 2024-08-16T05:23:24.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-22T10:02:41.000Z (11 months ago)
- Last Synced: 2025-10-21T09:57:14.514Z (8 months ago)
- Language: Swift
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
https://github.com/user-attachments/assets/c5046d9f-50ee-4455-99bf-df3767c34a8a
### LICENSE
MIT, 2024-Present Bin Hua