This is a node command line utility that simplifies the process of debugging node scripts using node-inspector.
npm install -g nodebug
To debug a typical script:
nodebug script.js
To debug unit tests (e.g. using nodeunit):
nodebug node_modules/nodeunit/bin/nodeunit tests.js
Need to pass options to your script?
nodebug script.js -- -v -t --include who
Optimist, which powers nodebug's options, allows for any arguments after the --
to remain untouched.
- Executes the specified script with the node debugger attached (i.e. --debug-brk)
- Starts node-inspector
- Launches the debugging interface (i.e. Chrome)