在WebStorm 7中调试node.js应用程序 [英] Debugging node.js apps in WebStorm 7

查看:152
本文介绍了在WebStorm 7中调试node.js应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我第一次启动调试器,让应用程序运行:

  / usr / bin / node --debug-brk = 34041 app。 js 
调试器侦听端口34041
当前环境:开发
Express服务器侦听端口3000

但是,第一次(或者如果我重新启动调试器),我得到调试器运行但不是应用程序,如下所示:

  / usr / bin / node --debug-brk = 42140 app.js 
调试器监听端口42140

  / usr / bin / node --debug-brk = 51341 app.js 
调试器监听端口51341

我需要重新启动WebStorm本身,以便再次调试该应用程序。
WebStorm中是否存在错误?
这是Node.js中的错误吗?
有没有办法让它正常工作?

解决方案

联系支持后,我发现这是一个WebStorm中的错误,已在7.0.1版中修复。


I am having a strange issue debugging node.js apps in WebStorm 7.

The first time I start the debugger I get the application running:

/usr/bin/node --debug-brk=34041 app.js
debugger listening on port 34041
Current Environment: development
Express server listening on port 3000

But, after the first time (or if I restart the debugger), I get the debugger running but not the app, like below:

/usr/bin/node --debug-brk=42140 app.js
debugger listening on port 42140

or

/usr/bin/node --debug-brk=51341 app.js
debugger listening on port 51341

I need to restart the WebStorm itself in order to debug the app again. Is it a bug in WebStorm? Is it a bug in Node.js? Is there a way to make it work properly?

解决方案

After contacting the support, I found that it was a bug in the WebStorm, already fixed in version 7.0.1.

这篇关于在WebStorm 7中调试node.js应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆