我使用 node.js 和 ExpressJS。我想调试我的代码。
Node --调试
$ 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 检查器
$ node-inspector
Node Inspector v0.7.2
Visit http://127.0.0.1:8080/debug?port=5858 to start debugging.
Chrome
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问题(link)并将结果包含在描述中。
免责声明:我是 Node Inspector 的维护者。
关于node.js - Node 检查器重复错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22650491/