Node Inspector

Debugging Node.js by hand can be frustrating. You could do: node debug some_script.js the_arguments, but you wouldn't want to.

Install Node Inspector Globally

npm install -g node-inspector

Please have your npm environment configured so that you don't need to use sudo npm install -g ....

Or Install Node Inspector Locally

npm install node-inspector
cd ~/node_modules/node-inspector
npm link

Running Node Inspector

Assuming that you have your npm environment configured, you can now do:

  1. Run node-inspector.

  2. Open Google Chrome (or some other Blink derived web browser) to

  3. Run node --debug-brk path/to/some_script.js the_arguments.

For more information on using node-inspector check out the GitHub Repository

NodeInspector (last edited 2013-11-12 15:30:11 by Carlos)