Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebStorm Debugger for Node Stopping at Non Breakpoints

In WebStorm, I have a Node application and I simply hit debug and on load the debugger stops on a bunch of seemingly random lines in node_modules. I can continue through about 5 files until I get to a router/index.js file that gets stuck on a single line for countless continues.

I have no breakpoints in any of the node_modules files, obviously, and WebStorm does not show a breakpoint. However it stops every time. My solution has been to mute all breakpoints, wait for the app to load, and then unmute. Sometimes, though, I have to re-add my breakpoints if I want the checkbox to check and be able to hit those breakpoints. At this point I have no issues. Any idea why it's getting stuck in node_modules with no breakpoints?

like image 267
KJ3 Avatar asked Jul 16 '15 21:07

KJ3


2 Answers

Figured out a workaround. I chose "view breakpoints" and although the points that were consistently stopped at were not listed, I simply removed all breakpoints, and I can now debug without stopping in random node_modules.

like image 81
KJ3 Avatar answered Oct 19 '22 23:10

KJ3


I ran into a similar issue in Webstorm 2017.2.4 while debugging clusters and workers. I have a file named worker.js and a number of breakpoints in it. When I debug through Webstorm, the debugger is pulling up every file it can find named worker.js and breaking on the same line number as marked in the "real" worker.js.

The only workaround right now is to rename the file while debugging it.

like image 23
worc Avatar answered Oct 19 '22 22:10

worc