Skip to content
A Simple Core Data Debugger that will look inside your apps DB
JavaScript Swift Objective-C HTML Ruby CSS
Branch: master
Clone or download
Latest commit 4e60d60 Oct 29, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AVSQLDebugger.xcworkspace Code Added Sep 20, 2019
AVSQLDebugger Pod Spec updated Sep 20, 2019
Example Code Added Sep 20, 2019
Pods Pod Spec updated Sep 20, 2019
.gitignore Initial commit Sep 20, 2019
.travis.yml Update .travis.yml Sep 23, 2019
AVSQLDebugger.podspec Pod Spec updated Sep 20, 2019
Debug.png Debug Pic added Oct 29, 2019
LICENSE Initial commit Sep 20, 2019
Podfile Pod Spec updated Sep 20, 2019
Podfile.lock Pod Spec updated Sep 20, 2019
README.md Update README.md Oct 29, 2019
_config.yml Set theme jekyll-theme-cayman Sep 20, 2019

README.md

AVSQLDebugger

A Simple extension that will debug your Core Data inside iOS apps. Just use this extension and debug your database in your web browser.

CocoaPods Carthage License

Usage

👩‍💻 How to use

You can use this as the follows:

import AVSQLDebugger
  
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

     //Initialize the Debugger in AppDelegate File with your container name and set your custom Port Number
        
     AVDebugger.sharedInstance.config(with: self, containerName: "Example", port: 8090)
        
     return true
 }

And make sure confirmation of AVDebuggerProtocol Protocol

import AVSQLDebugger

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, AVDebuggerProtocol { ... }

Check the console for server running of given port. Open this url in your web browser and see all the data inside your app.

------------------------------------------------------
🎉 Server is up and running on port: 8090 🎉
🎉 Copy and paste this url to your local browser. 🎉
🚀🚀🚀
http://127.0.0.0:8090/index.html
🚀🚀🚀
------------------------------------------------------

Stop listening the server events

 func applicationWillTerminate(_ application: UIApplication) {
      // Called when the application is about to terminate. Save data if appropriate.
      // Saves changes in the application's managed object context before the application terminates.
      self.saveContext()
      
      //Stop Listening the server
      AVDebugger.sharedInstance.stopListingServer()
 }

📲Installation

Using CocoaPods

To install it, simply add the following line to your Podfile:

pod 'AVSQLDebugger', '~>1.0.2'

Then Run

pod install

Using Carthage

Edit your Cartfile and specify the dependency:

github "umeshiscreative/AVSQLDebugger"

Seeing values

❤️ Contributing

This is an open source project, so feel free to contribute. How?

  • Open an issue.
  • Propose your own fixes, suggestions and open a pull request with the changes.

Author

Umesh Verma

License

AVSQLDebugger is available under the MIT license. See the LICENSE file for more info.

You can’t perform that action at this time.