'Failed to get tabs for debugging' when trying to debug NodeJs with chrome debugger for Eclipse

僤鯓⒐⒋嵵緔 提交于 2019-12-12 09:52:14

问题


I have struggled this for couple of days without any success, please help me out.

What I am seeking is to find a better IDE for editing and debugging Node.js based JavaScript server code. I have successfully installed Eclipse IDE for JavaScript and followed link https://github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger installed Chrome debugger for Eclipse.However, when I tried to debug I encountered an error saying 'Failed to get tabs for debugging'

Here are the steps what I did:

  1. Installed Node.js v0.10.0
  2. Installed Eclipse IDE for JavaScript
  3. Installed Chrome debugger for Eclipse by following https://github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger
  4. Create a debug configuration under WebKit Protocol (refer to bottom picture)
  5. Create a JavaScript project in Eclipse
  6. Create a JavaScript source file in the project
  7. Open a Ubuntu terminal and run the JavaScript source file: node debug test1.js
  8. In Eclipse try debug with the custom debug configuration and the error happens.
  9. PS: my Ubuntu is 12.04 64bit; NodeJs remote debug port is default 5858

Please help me on this, what did I missing from the steps?


回答1:


Step #4 is incorrect. Should be "Standalone V8 VM".



来源:https://stackoverflow.com/questions/15720338/failed-to-get-tabs-for-debugging-when-trying-to-debug-nodejs-with-chrome-debug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!