On Wed, 18 Oct 2023 00:01:08 GMT, Chris Plummer <cjplum...@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