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.
- csr of
-
JDK-8266877 Missing local debug information when debugging JEP-330
-
- Resolved
-