node.js debugging with node-inspector

1. Install the node-inspector using npm.

sudo npm install node-inspector

2. Launch your web application with debug option.

node --debug app.js 

3. Launch Launch node-inspector, it will tell you the url to go to for debugging. It uses the default port 8080. If the port 8080 is already taken by other apps, you can tell it to use a different port-number. node-inspector –web-port=8081


4. Open Chrome and go to the url that’s shown on step 3. Usually it’s

Search within Codexpedia

Custom Search

Search the entire web

Custom Search