Node inspector not starting

I start the NodeJS Express server at 127.0.0.1haps000 and try to debug it using the awesome (when it works) Node Inspector , but there are problems starting after updating. I used to run Node Inspector 0.7.4 with node-debug server.jsno problems. Then I wanted to update it to the last 0.10.0 and went npm update -g node-inspector, but now when I run node -debug server.js, a blank page opens in the browser with url http://127.0.0.1:8080/debug?ws=127.0.0.1:8080&port=5858and nothing happens. I tried node-debug --web-host=127.0.0.1:3000with no luck.

How do I debug my Node programs? BTW I'm on Ubuntu.

EDIT: I had no luck with the latest version 0.10.0, so I had to uninstal and install 0.9.2. Node inspector started without problems. I am running 0.10.0 on my Mac, but on Ubuntu it apparently does not work for some reason, so returning to 0.9.2 was only a solution. Hope this helps some Ubuntu users.

+4
source share
1 answer

Use Chrome 42.0.2311.152-1 with node -inspector v0.9.2 or later to fix this problem on Ubuntu 14.04.

See here: https://github.com/node-inspector/node-inspector/issues/697

0
source

All Articles