• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

debug-service

provides a debugger as a service for other atom packages
  • #debug
  • #service
paulpflug
0.0.1 280
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Debug service

provides a debugger as a service for other atom packages.

debug service

Only works in dev mode!

Usage

package.json

{
  "otherStuff": "otherData",
  "consumedServices": {
    "debug": {
      "versions": {
        "^0.0.1": "consumeDebug"
      }
    }
  }
}

your package:

  # in your package declaration 
  # so debugging is invisible to users and you can disable debugging on single packages 
  config:
    debug:
      type: "integer"
      default: 0
      minimum: 0
  #in main module 
  consumeDebug: (debugSetup) =>
    debug = debugSetup(pkg: "yourPackageName", nsp: "someNamespace")
 
    # if in dev mode, and debug variable in config of your package is at least 2 
    # will print "yourPackageName.someNamespace: debug service consumed" 
    debug "debug service consumed", 2
 
    # the level is optional, this will work also: 
    debug "somethingSomething"
 
    # you can defer nsp setting for later 
    debugCreator = debugSetup(pkg: "yourPackageName")
    debugNSP1 = debugCreator("NSP1")
    debugNSP2 = debugCreator("NSP2")

License

Copyright (c) 2015 Paul Pflugradt Licensed under the MIT license.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by