无法使用 chrome devtools 从 eclipse 运行 node.js 调试
我正在尝试使用 Eclipse 在 Ubuntu 下运行 node.js 调试:3.7.1、Chromium JS Debugger 0.3 和 node.js 4.12(稳定)。
我按照 https://github 上所述安装并配置了调试.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger。
我使用 --debug 运行我的节点应用程序,然后在 eclipse 中运行调试,我看到它连接到调试端口,但随后它崩溃并显示消息“在以下过程中发生内部错误:“启动节点 5858”。 java.lang.NullPointerException”
通信如下所示:
从 Chrome 收到:类型:connect V8-版本:3.1.8.26 协议版本:1 嵌入主机:节点 v0.4.12 内容长度:0
消息结束
发送到 Chrome:
消息结束
内容长度:46
{"seq":3,"type":"请求","command":"版本"}
消息结束
从 Chrome 收到:
内容长度:135
{"seq":2,"request_seq":3,"type":"response","command":"version","success":true,"body":{"V8Version":"3.1. 8.26"},"refs":[],"运行":true}
消息结束
I'm trying to run node.js debug under Ubuntu with Eclipse: 3.7.1, Chromium JS Debugger 0.3 and node.js 4.12 (stable).
I installed and configured debug as described on https://github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger.
I run my node app with --debug, then I run debug in eclipse, I see it connects to the debug port but then it crashes with message "An internal error occurred during: "Launching Node 5858".
java.lang.NullPointerException"
Communication looks like:
Received from Chrome: Type: connect V8-Version: 3.1.8.26
Protocol-Version: 1 Embedding-Host: node v0.4.12 Content-Length: 0end of message
Sent to Chrome:
end of message
Content-Length:46
{"seq":3,"type":"request","command":"version"}
end of message
Received from Chrome:
Content-Length: 135
{"seq":2,"request_seq":3,"type":"response","command":"version","success":true,"body":{"V8Version":"3.1.8.26"},"refs":[],"running":true}
end of message
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为你应该报告这个问题,因为它处理异常(显然是一个错误)。
说明如下:http://code.google.com/p/chromedevtools/wiki/HowToReportProblem< /a>
它还介绍了如何获取 NullPointerException 堆栈跟踪,这可能是这里最有价值的数据。
I think you should report the problem, since it deals with exception (clearly a bug).
Here's instruction: http://code.google.com/p/chromedevtools/wiki/HowToReportProblem
It also covers how to get the the NullPointerException stacktrace which is probably the most valuable piece of data here.
使用WebStorm(phpStorm)和node.js调试扩展
Use WebStorm(phpStorm) and node.js debug extension