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

Improvements for the Debugging on Demand capabilities

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3
    • tbd
    • 13, 14
    • core-svc
    • None

    Description

      In JDK12, SAP has contributed a feature called "Delayed starting of debugging via jcmd". See JDK-8214892. It adds the capability to start a JVM with the JDWP agent loaded but debugging not yet enabled. The user can later on start the actual debugging which will open up a port for the debugger to connect.

      This feature had been pushed to the JDK without a broader discussion of the overall "Debugging on Demand" feature, so it was decided to hide the feature for now. See JDK-8226608. There are a few edges that have to be addressed such as:
      - naming of commands and options
      - usability (e.g. allow later configuration of debugging transport parameters such as port, server/client mode etc.)
      - consider adding methods to start the debugging agent to the com.sun.tools.attach.VirtualMachine interface
      - performance of the VM with debugging agent loaded but debugging not enabled

      This task shall collect subtasks to address these points.

      Attachments

        Issue Links

          Activity

            People

              clanger Christoph Langer
              clanger Christoph Langer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: