E521 Skip the specified classes on exception breakpoint or stepping by testforstephen · Pull Request #829 · microsoft/vscode-java-debug · GitHub
[go: up one dir, main page]

Skip to content

Skip the specified classes on exception breakpoint or stepping#829

Merged
testforstephen merged 3 commits intomicrosoft:masterfrom
testforstephen:jinbo_filter
Jul 1, 2020
Merged

Skip the specified classes on exception breakpoint or stepping#829
testforstephen merged 3 commits intomicrosoft:masterfrom
testforstephen:jinbo_filter

Conversation

@testforstephen
Copy link
Contributor

Signed-off-by: Jinbo Wang jinbwan@microsoft.com

It requires microsoft/java-debug#334

Close #756
Close #628

@testforstephen testforstephen requested review from Eskibear, akaroml, andxu and jdneo and removed request for Eskibear June 12, 2020 09:27
@testforstephen
Copy link
Contributor Author
testforstephen commented Jun 12, 2020

When you just want to break on exception for "Just My Code", you can

    "java.debug.settings.exceptionBreakpoint.skipClasses": [
        "$JDK", // Skip the JDK classes from the default system bootstrap classpath, such as rt.jar, jrt-fs.jar.
        "$Libraries" // Skip the classes from application libraries, such as Maven, Gradle dependencies.
    ],

When you just want to step into "Just My Code", then you can

    "java.debug.settings.stepping.skipClasses": [
        "$JDK", // Skip the JDK classes from the default system bootstrap classpath, such as rt.jar, jrt-fs.jar.
        "$Libraries" // Skip the classes from application libraries, such as Maven, Gradle dependencies.
    ]

Also, you could add a specific class name expression, e.g. java.*, *.Foo to skip the classes.

@testforstephen testforstephen added this to the 0.27.0 milestone Jun 12, 2020
@Eskibear
Copy link
Member

Here at a user's perspective, I don't see the meaning of $JDK and $Libraries.

  • $JDK, does it mean java.* and javax., or even including javafx.? Then why there's an explicit java.lang.classloader in default value?
  • $Library. This is vague, it might be better to add more description?

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
@testforstephen
Copy link
Contributor Author

Here at a user's perspective, I don't see the meaning of $JDK and $Libraries.

  • $JDK, does it mean java.* and javax., or even including javafx.? Then why there's an explicit java.lang.classloader in default value?
  • $Library. This is vague, it might be better to add more description?

Reasonable concern. Addressed.

@testforstephen testforstephen merged commit cc40399 into microsoft:master Jul 1, 2020
@testforstephen testforstephen deleted the jinbo_filter branch July 1, 2020 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Break on exception in Java for “just my code” Support step "Just My Code"

3 participants

0