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)供调试只用并且设置断点
4.服务器端运行node --debug-brk=5858 debug.js以启动服务
5.eclipse中运行debug_5858(debug虫子那个按钮旁边的下拉箭头)
6.调试nodejs
回复 (4)
P
要用Nodeclipse http://www.nodeclipse.org/ 调试问题解决了
N
用CLOUB9 吧
Y
还是webstorm ..方便...
J
引用 youxiachai还是webstorm ..方便...
下载一个webstorm试下,谢谢推荐
参与回复
登录后即可参与回复。登录