RFR: JDK-8318957: enhance agentlib:jdwp help output by info about allow option

Chris Plummer cjplummer at openjdk.org
Fri Oct 27 16:24:34 UTC 2023


On Fri, 27 Oct 2023 08:19:13 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> The allow option of agentlib:jdwp has been introduced a long time ago (see JDK-8061228) and is documented here :
> https://docs.oracle.com/en/java/javase/17/docs/specs/jpda/conninv.html#oracle-vm-invocation-options
> However it is still missing in the agentlib:jdwp help output and should be added there too.

src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c line 839:

> 837:  "server=y|n                       listen for debugger?              n\n"
> 838:  "allow=<IP|IP-list>               If server=y, allows connections only from the IP addresses/subnets specified.\n"
> 839:  "                                                                   * (allows connection from any address)\n"

I'm just wondering if we should also mention to use "+" to separate addresses in the list.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16393#discussion_r1374796046


More information about the serviceability-dev mailing list