Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

debugger suddenly stopped working in webstorm project

Tags:

webstorm

My webstorm ide won't stop on breakpoints in my existing Node.js project anymore.

It seems to work fine when I create a new webstorm node.js express project and set a debug point.

For example, for a very simple test, I create a file in my existing project called test.js:

var name = 'bob';
console.log(name);

create a run/debug configuration

Name:test
Path to Node:/usr/local/bin/node
workding directory: Path to my directory
Path to Node App JS file: test.js

I set a break point to line 1 which never gets hit, even though the program runs fine. How can I get the debugger to hit breakpoints again on this project.

Output

/usr/local/bin/node --debug-brk=64597 test.js
debugger listening on port 64597
bob

Process finished with exit code 0

The same project copied into another directory works fine in the debugger. However if I keep it in the same directory, even if I delete the .idea folder and recreate the debug configuration from scratch it won't attach to the debugger.

I was playing around with JSTestDriver settings earlier.. could that have affected things and continued to affect things even though the .idea folder was deleted?

like image 272
MonkeyBonkey Avatar asked Oct 06 '22 15:10

MonkeyBonkey


2 Answers

The same thing happened to me as well. I finally rebooted my machine and Webstorm started hitting breakpoints again. It's not a great answer, but at least it worked.

like image 57
Lavamantis Avatar answered Oct 09 '22 23:10

Lavamantis


Rename (delete) the .idea folder from the root of your project and try again.

like image 31
Arman Yeghiazaryan Avatar answered Oct 09 '22 23:10

Arman Yeghiazaryan