cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cordova Wiki] Update of "NodeInspector" by JoshSoref
Date Mon, 11 Nov 2013 21:21:30 GMT
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 JoshSoref:
https://wiki.apache.org/cordova/NodeInspector

Comment:
Node Inspector

New page:
= 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.

== Installing Node Inspector ==

Instead, you can install Node Inspector:
{{{
node 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. Run `node --debug-brk path/to/some_script.js the_arguments`.

Mime
View raw message