I'm debugging a node application with Webstorm and want to use the 'Break on Exception' option so that I don't have to continuously press 'step into' dozens of times before finding the exact source of the error I'm trying to solve.
The problem is that when I set 'Break on Exception' to 'on', it then catches all sorts of exceptions from within node itself long before getting to my code. I was able to use 'Run to Cursor' to skip node errors that occur on startup, but that didn't help much because it seems many errors are thrown and caught inside node itself during execution.
How can I use 'Break on Exception' only for exceptions that are thrown directly by my code?
It works fine for me:
"Run -> View Breakpoints... -> JS Any exception -> Enabled & Suspend & Uncaught only".
There is no such feature in WebStorm for now. Feel free to vote for the issue about that in our tracker.
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