Node-custom-debug is a project mainly written in ..., it's free.
Launch debugger on your favorite port from your javascript code!
You have no need to fix your daemon's init scripts to enable debugging and profiling on the fly.
It's good to use with node-inspector to inspect many instances on the single server.
npm install -g custom-debug
See test.js
:
var debug = require("./custom-debug");
var profiler = require("v8-profiler");
var port = 5858;
console.log("Starting first time : " + debug.start(port));
console.log("Starting second time : " + debug.start(port));
setInterval(function() {
console.log("Another iteration..");
}, 1000);
To try that out:
node test.js
node-inspector