iOS-Debug-Database(SFDebugDB),like Android-Debug-Database,A Library for Debugging iOS Databases with WebSite Console
iOS Debug Database is a powerful library for debugging databases and userdefault in iOS applications.
iOS Debug Database allows you to view databases and userdefault directly in your browser in a very simple way.
- See all the databases.
- See all the data in the userdefault used in your application.
- Run any sql query on the given database to update and delete your data.
- Directly edit the database values.
- Directly edit userdefault.
- Delete database rows and userdefault.
- Search in your data.
- Sort data.
- Download database.
NSString *documents = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
__unused SFDebugDB *debugDB = [SFDebugDB startWithPort:9001 directorys:@[@"NSUserDefault",documents,[[NSBundle mainBundle] resourcePath]]];
-
Port: startWithPort can specified any port
-
Directorys: exist .sqlite or .db folder base path,or database path,string "NSUserDefault" constant stand for read NSUserDefault
-
DebugDB: Open http://XXX.XXX.X.XXX:9001 in your browser
-
You can also always get the debug address url from your code by calling the method
[SFDebugDB shared].address;
Now open the provided link in your browser.
Important:
- Your iOS device should be connected to the same Network (Wifi or LAN).
- Default support iOS Simulator and device connected Xcode, not suport device without xcode connection,use
[SFDebugDB shared].enableInAnyEnvironment = YES;
can enable it!
iOS Debug Database is available under the MIT license.
Just make pull request. You're in!