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.

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
 }

Swift

And make sure confirmation of AVDebuggerProtocol Protocol

import AVSQLDebugger

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

Swift

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
???
------------------------------------------------------
Bash

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()
 }
Swift

?Installation

Using CocoaPods

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

pod 'AVSQLDebugger', '~>1.0.2'
Ruby

Then Run

pod install
Ruby

Using Carthage

Edit your Cartfile and specify the dependency:

github "umeshiscreative/AVSQLDebugger"
Bash

Seeing values

Debug

GitHub

A Simple Core Data Debugger that will look inside your apps DBRead More

Latest commit to the master branch on 10-29-2019
Download as zip