DebugSwift
A toolkit to make debugging iOS applications easier 🚀
What is DebugSwift?
A toolkit to make debugging iOS applications easier 🚀
Overview of DebugSwift
What it is
DebugSwift is a comprehensive toolkit designed to streamline and elevate the debugging experience for Swift-based applications. It offers a powerful set of features to make the debugging process more efficient and effective. The toolkit is available as an open-source library under the MIT license.
Key features
- Network Inspector: HTTP monitoring with detailed logs and filtering, WebSocket inspector, request limiting, smart JSON formatting, encryption support (AES-256/128 and custom decryptors), and a response modifier for mocking or modifying API responses in real time.
- Performance: Real-time CPU, memory, and FPS monitoring; automatic memory leak detection for ViewControllers and Views; main thread violation detection with stack traces; and a performance widget overlay.
- App Tools: Crash reports with screenshots and stack traces, real-time console logs, device info, APNS tokens, and custom debugging actions.
- Interface Tools: Grid overlay, 3D view hierarchy inspector, touch indicators, animation control, view borders, SwiftUI render tracking (beta), and a documentation recorder for annotated screenshots.
- Resources: File browser for app sandbox and shared app group containers, UserDefaults viewer/editor, keychain inspector, SQLite and Realm database browser, push notification simulator, and SwiftData browser (iOS 17+).
Use cases
DebugSwift is intended for developers debugging iOS applications. It can be used to inspect network traffic, monitor performance metrics, detect memory leaks, analyze crashes, browse app data, and simulate push notifications. The toolkit is suitable for both development and testing phases.
Getting started
Install via Swift Package Manager by adding to Package.swift: dependencies: [ .package(url: https://github.com/DebugSwift/DebugSwift.git, from: 1.0.0) ] Or add through Xcode: File > Add Package Dependencies > Enter URL https://github.com/DebugSwift/DebugSwift. Basic setup in AppDelegate: import DebugSwift @main class AppDelegate: UIResponder, UIApplicationDelegate { private let debugSwift = DebugSwift() func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { #if DEBUG debugSwift.setup() debugSwift.show() #endif return true } }
License and pricing
DebugSwift is open source under the MIT license. No pricing information is provided.
Based on the project's public README and repository metadata.