You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debugger does not break on caught exception thrown in skipped file #2281
Describe the bug
The VSCode debugger does not break execution if an exception is thrown in a skipped file that unwinds through a non-skipped file before it gets caught, even if Caught exceptions is checked.
Observed behavior: the exception is logged to the Debug Console but execution does not break into the debugger.
Desired behavior: the debugger breaks at test.cjs line 3, just like it would if the exception was uncaught. (Indeed, after commenting out the try line and the catch block, the debugger breaks at test.cjs line 3.)
I tried this program in Chrome, after adding myModule.mjs to the ignore list. It will break at the throw statement in myModule.mjs, even if that file is on the ignore list. That is also not optimal, IMHO, but better than the current VSCode behavior.
(BTW: This also affects users that do not mess with the skipFiles configuration, because it also applies to Node.js internals such as assert. This bug makes it harder to diagnose Node.js assertion failures.)
Activity