简体   繁体   中英

Node inspector doesn't start

I run NodeJS Express server on 127.0.0.1:3000 and trying to debug it with awesome (when it works) Node Inspector but having trouble starting it after the update. I used to run version of Node Inspector 0.7.4 with node-debug server.js with no problems. Then I wanted to update it to latest 0.10.0 and went npm update -g node-inspector but now when I run node-debug server.js blank page opens in browser with url http://127.0.0.1:8080/debug?ws=127.0.0.1:8080&port=5858 and nothing happens. I tried node-debug --web-host=127.0.0.1:3000 with no luck.

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

EDIT: I had no luck running latest version 0.10.0 so I had to uninstal and install 0.9.2. Node inspector started with no problem then. I run 0.10.0 on my mac but on Ubuntu it doesn't seem to work for some reason so going back to 0.9.2 was only solution. I hope this will help some Ubuntu users.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM