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

Missing local debug information when debugging JEP-330

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 17
    • tools
    • None
    • behavioral
    • minimal
    • debugging options will be enabled for the class being executed when the use of a debugger is detected
    • Other
    • Implementation

      Summary

      When compiling code with the source launcher, enable debugging info when debug options are detected.

      Problem

      Currently, the internal compilation of code being run by the source launcher does not include full debug info, because class files are not generated that might subsequentlly be run under a debugger. But a notable special case is when the source launcher itself is being run with a debugger.

      Solution

      Detect the use of a debugger and automatically set the -g option for the internal compilation.

      Specification

      This is just a behavioral change. There is no change required for the user to enable the new behavior.

      The -g option for the internal compilation will be set when the java launcher for JEP-330 is launched with -agentlib:jdwp= or -Xrunjdwp: command line options.

            jtulach Jaroslav Tulach (Inactive)
            jtulach Jaroslav Tulach (Inactive)
            Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: