passing options to node #121

jedahan opened this Issue Oct 5, 2012 · 1 comment

2 participants


I would like to run node-inspector to debug my code, but theres no way to pass along --debug.

running -g just prints debug messages to the commandline, it does not help v8-profiler to attach to node-inspector.

Is there something I'm missing?


You can use the nodeio.start(job, options, callback, capture output) function inside a script and then just run that script with the node-inspector.

Here's an example of using start()

var nodeio = require('');

var job = new nodeio.Job({
    input: [ 0, 1, 2 ],
    run: function (num) {
        this.emit(num * 2);

nodeio.start(job, { silent: true }, function (err, output) {
}, true);
@chriso chriso closed this Oct 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment