RFR: JDK-8317920: JDWP-agent sends broken exception event with onthrow option [v6]

Johannes Bechberger jbechberger at openjdk.org
Wed Oct 18 07:10:48 UTC 2023


On Wed, 18 Oct 2023 00:01:08 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

> Does that mean the open is done by the debugger before the debuggee even throws the exception, and that just leaves the debugger blocked on the open until the debuggee does an accept?

Yes. This is for three reasons:

1. server mode is the most commonly used mode
2. it is used by the `OnThrowTest` which is the other test that checks that the JDWP agent properly runs the `launch` command after the specified exception has been thrown
3. The original intent of onthrow is, is that the `launch` command launches the debugger (by running it in a new session via screen or tmux), this is why setting the `launch` option is mandatory when using the `onthrow` option. Nowadays most people use onthrow with an IDE, so we could think about removing the requirement.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16145#discussion_r1363355684


More information about the serviceability-dev mailing list