简体   繁体   English

节点检查器无法启动

[英]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. 我在127.0.0.1:3000上运行NodeJS Express服务器并尝试使用awesome(当它工作时) Node Inspector进行调试但在更新后无法启动它。 I used to run version of Node Inspector 0.7.4 with node-debug server.js with no problems. 我曾经使用node-debug server.js运行Node Inspector 0.7.4版本而没有任何问题。 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. 然后我想把它更新到最新的0.10.0并且去了npm update -g node-inspector但是现在我运行node-debug server.js空白页面在浏览器中用url http://127.0.0.1:8080/debug?ws=127.0.0.1:8080&port=5858打开http://127.0.0.1:8080/debug?ws=127.0.0.1:8080&port=5858 ,没有任何反应。 I tried node-debug --web-host=127.0.0.1:3000 with no luck. 我尝试了node-debug --web-host=127.0.0.1:3000而没有运气。

How can I debug my my Node programs now? 我现在如何调试我的Node程序? BTW I'm on Ubuntu. 顺便说一下,我在Ubuntu上。

EDIT: I had no luck running latest version 0.10.0 so I had to uninstal and install 0.9.2. 编辑:我没有运气运行最新版本0.10.0所以我不得不卸载并安装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. 我在我的Mac上运行0.10.0但是在Ubuntu上它似乎没有工作因为某些原因因此回到0.9.2只是解决方案。 I hope this will help some Ubuntu users. 我希望这将有助于一些Ubuntu用户。

Use Chrome 42.0.2311.152-1 with node-inspector v0.9.2 or higher to fix this problem on Ubuntu 14.04. 将Chrome 42.0.2311.152-1与node-inspector v0.9.2或更高版本配合使用可解决Ubuntu 14.04上的此问题。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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