Code Monkey home page Code Monkey logo

avsqldebugger's Introduction

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.

avsqldebugger's People

Contributors

umeshiscreative avatar

Watchers

James Cloos 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.