provides a debugger as a service for other atom packages.
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 packagesconfig:debug:type: "integer"default: 0minimum: 0#in main moduleconsumeDebug: (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 laterdebugCreator = debugSetup(pkg: "yourPackageName")debugNSP1 = debugCreator("NSP1")debugNSP2 = debugCreator("NSP2")
Copyright (c) 2015 Paul Pflugradt Licensed under the MIT license.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.