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

Add option to specify the address when starting debugging via jcmd

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 13
    • core-svc

      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.

            rschmelter Ralf Schmelter
            rschmelter Ralf Schmelter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: