Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging node.js apps in WebStorm 7

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?

like image 265
Jefferson Sofarelli Avatar asked Feb 27 '26 06:02

Jefferson Sofarelli


1 Answers

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

like image 72
Jefferson Sofarelli Avatar answered Feb 28 '26 20:02

Jefferson Sofarelli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!