Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8223394

Add option to specify the address when starting debugging via jcmd


    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 13
    • Fix Version/s: tbd
    • Component/s: core-svc
    • Labels:


      You can already start debugging delayed via the VM.start_java_debugging command, if the JDWP agentlib was started with the onjcmd=y option. It will then start a debugging session with address supplied in the JDWP command line.

      It would be more flexible to be able to specify the address via the jcmd.

      Since the jdwp library already supports a new address and timeout for each session in principle, this feature is not very intrusive.

      The error handling has to be changed, since it is no acceptable to exit the VM just because the transport failed. Instead we wait for a new VM.start_java_debugging command after a failure (and after a debugging session has ended).

      In addition we also allow a timeout to be set via the jcmd, If not supplied, a default of 30 seconds is used.




            • Assignee:
              rschmelter Ralf Schmelter
              rschmelter Ralf Schmelter
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: