Skip to content

Skip the specified classes on exception breakpoint or stepping - #829

Merged
Jinbo Wang (testforstephen) merged 3 commits into
microsoft:masterfrom
testforstephen:jinbo_filter
Jul 1, 2020
Merged

Jinbo Wang (testforstephen) merged 3 commits into
microsoft:masterfrom
testforstephen:jinbo_filter

Conversation

@testforstephen

Copy link
Copy Markdown
Contributor

Signed-off-by: Jinbo Wang [email protected]

It requires microsoft/java-debug#334

Close #756
Close #628

@testforstephen

Jinbo Wang (testforstephen) commented Jun 12, 2020 •

Copy link
Copy Markdown
Contributor Author

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 Jinbo Wang (testforstephen) added this to the 0.27.0 milestone Jun 12, 2020
Comment thread src/classFilter.ts Outdated
Comment thread src/classFilter.ts Outdated
@Eskibear

Copy link
Copy Markdown
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?

@testforstephen

Copy link
Copy Markdown
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
Jinbo Wang (testforstephen) merged commit cc40399 into microsoft:master Jul 1, 2020
@testforstephen
Jinbo Wang (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