[英]node-inspector repeating error
我使用node.js和ExpressJS。 我想调试我的代码。
$ node --debug app.js
debugger listening on port 5858
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
Listening on port 3000
xStringLength": 10000}}Content-Length: 126
xStringLength": 10000}}Content-Length: 127
xStringLength": 10000}}Content-Length: 127
xStringLength": 10000}}Content-Length: 127
xStringLength": 10000}}Content-Length: 127
$ node-inspector
Node Inspector v0.7.2
Visit http://127.0.0.1:8080/debug?port=5858 to start debugging.
Detached from the target
Remote debugging has been terminated with reason: Debugged process exited.
Please re-attach to the new target.
我想像Xcode一样使用断点。 但是这个错误正在重复,调试页面会自动刷新。
请尝试安装旧版本的Node Inspector(v0.7.0或v0.6.2)。 你能在那里重现这个问题吗?
您也可以从github上试用最新版本
$ npm install -g node-inspector/node-inspector
无论结果如何,请填写github问题( 链接 )并将结果包含在说明中。
免责声明:我是Node Inspector的维护者。
如果你使用的是Windows。 请检查该端口已经正常工作的服务(在您的情况下为3000)。 转到任务管理器=>服务并寻找已使用该端口(PID)的任何服务。 如果发现此端口已被任何其他服务使用,则尝试更改默认端口并将调试运行到其他空闲端口。 我使用“节点检查器”通过使用命令将调试转移到另一个端口
node-inspector --web-port=<your port number>
使用更新node-inspector到最新版本
sudo npm install -g node-inspector
在我的情况下,最新版本是v1.0.0并为我工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.