eclipse远程调试node.js
发布于 11 年前 作者 jsczjt2013 7918 次浏览 最后一次编辑是 8 年前

1.使用eclipse安装v8调试工具 http://chromedevtools.googlecode.com/svn/update/dev/

2.eclipse->Debug Configurations中new V8 VM的remote节点,设置name(debug_5858),host(…),port(5858)

3.编写如下代码(debug.js)供调试只用并且设置断点 <pre class=‘prettyprint’>var a = 1; var b = ‘world’; var c = function(x) { console.log('hello ’ + x + a); }; c(b);</pre>

4.服务器端运行node --debug-brk=5858 debug.js以启动服务

5.eclipse中运行debug_5858(debug虫子那个按钮旁边的下拉箭头)

6.调试nodejs

4 回复

还是webstorm …方便…

下载一个webstorm试下,谢谢推荐

要用Nodeclipse http://www.nodeclipse.org/ 调试问题解决了

回到顶部