You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by Apache Wiki <wi...@apache.org> on 2013/11/12 16:31:04 UTC
[Cordova Wiki] Update of "NodeInspector" by Carlos
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Cordova Wiki" for change notification.
The "NodeInspector" page has been changed by Carlos:
https://wiki.apache.org/cordova/NodeInspector?action=diff&rev1=1&rev2=2
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.
- == Installing Node Inspector ==
+ == Install Node Inspector Globally ==
+ {{{
+ npm install -g node-inspector
+ }}}
- Instead, you can install 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 ==
+
{{{
- node install node-inspector
+ npm install node-inspector
cd ~/node_modules/node-inspector
npm link
}}}
-
- Please have your [[npm_rc|npm environment]] configured so that you don't need to use `sudo npm install -g ...`.
== 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://localhost:8080]].
+ 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]]
+