|Deletions are marked like this.||Additions are marked like this.|
|Line 1:||Line 1:|
|= Node Inspector =
Debugging [[https://nodejs.org|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_rc|npm environment]] configured so that you don't need to use `sudo npm install -g ...`.
== Or Install Node Inspector Locally ==
npm install node-inspector
== Running Node Inspector ==
Assuming that you have your [[npm_rc|npm environment]] configured, you can now do:
1. Run `node-inspector`.
1. Open [[http://google.com/chrome|Google Chrome]] (or some other Blink derived web browser) to [[http://127.0.0.1:8080/debug?port=5858]].
1. Run `node --debug-brk path/to/some_script.js the_arguments`.
For more information on using node-inspector check out the GitHub Repository [[https://github.com/node-inspector/node-inspector]]