2011-11-18 63 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是文件名)

現在來蝕側,打開相同的文件,並設置斷點。 右鍵單擊源文件並選擇[調試方式] - [節點應用程序]。