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 Carlos
Date Tue, 12 Nov 2013 15:31:04 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 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]]
+ 

Mime
View raw message