Giter Club home page Giter Club logo

ios-debug-database's Introduction

iOS-Debug-Database

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.

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!

Seeing values

Editing values

License

iOS Debug Database is available under the MIT license.

Contributing to iOS Debug Database

Just make pull request. You're in!

ios-debug-database's People

Contributors

shaojiankui avatar

Watchers

ShiyongTan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.