首页 文章

无法使用chrome devtools从eclipse运行node.js调试

提问于
浏览
1

我试图在Eclipse下使用Ubuntu运行node.js debug: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中运行调试,我看到它连接到调试端口,但随后它崩溃了消息“ An internal error occurred during: "Launching Node 5858". java.lang.NullPointerException

沟通如下:

从Chrome收到:类型:连接V8-版本:3.1.8.26协议版本:1嵌入 - 主机:节点v0.4.12内容 - 长度:0消息结束发送给Chrome:消息结束内容长度:46 {“ seq“:3”,输入“:”请求“,”命令“:”版本“}消息结束从Chrome收到:Content-Length:135 {”seq“:2,”request_seq“:3,”type“: “response”,“command”:“version”,“success”:true,“body”:{“V8Version”:“3.1.8.26”},“refs”:[],“running”:true}消息结束

2 回答

  • 1

    我认为你应该报告问题,因为它处理异常(显然是一个错误) .

    这是指令:http://code.google.com/p/chromedevtools/wiki/HowToReportProblem

    它还介绍了如何获取NullPointerException栈跟踪,这可能是这里最有 Value 的数据 .

  • 0

    使用WebStorm(phpStorm)和node.js调试扩展

相关问题