iOS-Debug-Database,like Android-Debug-Database,A Library for Debugging iOS Databases with WebSite Console
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


iOS-Debug-Database(SFDebugDB),like Android-Debug-Database,A Library for Debugging iOS Databases with WebSite Console

iOS Debug Database

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.

What can iOS Debug Database do?

  • 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.

Using iOS Debug Database Library in your application

 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.


  • 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!

Seeing values

Editing values


iOS Debug Database is available under the MIT license.

Contributing to iOS Debug Database

Just make pull request. You're in!