iOS network debugging, like a wizard 🧙♂️
Start debugging iOS network calls like a wizard, without extra code! Wormholy makes debugging quick and reliable.
Features:
NSURLSession
.Alamofire
& AFNetworking
.ignoredHosts
.shakeEnabled
property.
Integrating Wormholy into your project is simple, and it works like magic! Shake your device or simulator to access Wormholy. There’s no need to import the library into your code.
It is recommended to install it only in debug mode and not integrate it into production. Please remove it before sending your apps to production. The easiest way to do this is with CocoaPods:
pod 'Wormholy', :configurations => ['Debug']
You can also integrate Wormholy using the Swift Package Manager!
Wormholy.ignoredHosts
. This is useful for ignoring traffic to certain domains.Wormholy.limit
. This helps manage memory usage by limiting the amount of data stored.Wormholy.defaultFilter
to streamline your debugging process.Wormholy.setEnabled(_:)
to toggle request tracking globally. You can also enable or disable it for specific URLSessionConfiguration
instances using Wormholy.setEnabled(_:sessionConfiguration:)
.Wormholy.shakeEnabled
.If you prefer not to use the shake gesture, you can disable it using the environment variable WORMHOLY_SHAKE_ENABLED
= NO
.
To trigger Wormholy manually from another point in your app without using the shake gesture, call:
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "wormholy_fire"), object: nil)
By following these steps and configurations, you can effectively integrate Wormholy into your development workflow, enhancing your ability to debug network requests efficiently.
Made with ❤️ by Paolo Musolino.
Follow me on:
Wormholy is available under the MIT license. See the LICENSE file for more information.