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?
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.
Rename (delete) the .idea folder from the root of your project and try again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With