Summary
Add jdb support for -R<option>
, which will pass <option>
when launching the debuggee JVM.
Problem
jdb can optionally launch the debuggee process rather than attaching to an already running process. When launching, there are some java command line options the jdb user can choose to pass to the debuggee process. Examples include -classpath
and -D<property>
. However, this list of supported options is a rather small fixed set that jdb is aware of.
Solution
Add support for -R<option>
to pass any <option>
to the debuggee process. jshell also passes arguments to the debuggee by using -R
, so it seems to be a good precedent to follow.
Specification
jdb help output for -R:
-R<option> forward <option> to debuggee process if launched by jdb, otherwise ignored
- csr of
-
JDK-8282691 add jdb "-R" option for passing any argument to the launched debuggee process
- Resolved