8266877: Missing local debug information when debugging JEP-330

Reviewed-by: alanb, jjg
This commit is contained in:
Jaroslav Tulach 2021-05-28 04:16:10 +00:00 committed by Jonathan Gibbons
parent 0c9daa7ed5
commit 6eb9114582

View File

@ -342,6 +342,9 @@ public class Main {
}
break;
default:
if (opt.startsWith("-agentlib:jdwp=") || opt.startsWith("-Xrunjdwp:")) {
javacOpts.add("-g");
}
// ignore all other runtime args
}
}