2011-11-18 67 views
8

我想用Google的Eclipse调试器插件V8调试Node.js(v0.6.1)。我正在使用Eclipse v4.1.0 on Windows7。我跟着detailed instructions on github,但每当我试图连接到正在运行的node.js(端口5858)过程中,我得到一个弹出错误信息,说:用Eclipse调试Node.js

An internal error occurred during: "Debug session initialization: Node-5858". 
Exception occured in callback 

有什么建议?

回答

3

我一直在寻找到一个类似的问题,这是我发现

的说明来设置它,可能只是值得重新读这些以确保一切是理所应当的:

https://github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger

请注意,在一个类似的问题看,当我位于谷歌代码此帮助车票,它涉及到了一些谁正对窗户的Node.js问题的用户:

http://code.google.com/p/chromedevtools/issues/detail?id=53

这可能是值得下载最新版本的Node.js,因为我相信现在已经有了修复程序,否则下载修复文件然后在故障单中提及。

0

您可以尝试测试Nodeclipse版本0.2.0测试版。

http://www.tomotaro1065.com/nodeclipse/

EXPRESS项目产生用

Select the [File]-[New]-[Project] menu. 
Select [Node]-[Express Project], and push [Next] button. 
Enter [Project name], and push [Finish] button. 

调试

Open the JavaScript source files that you want to set breakpoints. 
Double-click on the ruler at the left end of the line you want to set a breakpoint. 
If you want to remove a breakpoint, double-click on the ruler again. 
Select the main source file of Node Application on the Project Explorer, open the context menu by right-clicking, select the [Debug As]-[Node Application] menu. 
+0

Lone链接被认为是一个不好的答案(参见[faq#deletion]),因为它本身毫无意义,并且**目标资源不能保证在将来活着**。 [这将是最好的](http://meta.stackexchange.com/q/8259)在这里包括答案的基本部分,并提供链接供参考。 ** + **请务必仔细阅读[常见问题#推广]。另外请注意,每次链接到自己的网站/产品时都需要发布免责声明。 – j0k

0

就试试这个:

创建项目后,转到cmd并提供要调试的文件的文件路径。 现在运行命令节点--debug-BRK demo_node.js (其中demo_node.js是文件名)

现在来蚀侧,打开相同的文件,并设置断点。 右键单击源文件并选择[调试方式] - [节点应用程序]。