In a Java project, how can I configure VS Code to only break on an exception in "just my code"? I've messed around w/ the Uncaught Exceptions
& Caught Exceptions
but they are not scoped to my code.
It seems like a generic feature was implemented, Debug Protocol: Support more flexible handling of exceptions, but I'm not sure how to apply it to a Java project.
We've added support for exception configuration to the debug protocol (microsoft/vscode-debugadapter-node#64). Source
I see there's an option for Node.js:
VS Code Node.js debugging has a feature to avoid source code that you don't want to step through (AKA 'Just My Code'). This feature can be enabled with the
skipFiles
attribute in your launch configuration.skipFiles
is an array of glob patterns for script paths to skip.
Something like Visual Studio -> Enable or disable Just My Code.