This is a backport of the test parts of
JDK-8227229: Deprecate the launcher -Xdebug/-debug flags that have not done anything since Java 6
and
JDK-8312072: Deprecate for removal the -Xnoagent option
Backporting these changes makes
JDK-8327704: Update nsk/jdi tests to use driver instead of othervm
a clean backport. As 8327704 is huge, it would be quite unpleasant to review.
Removing the usage of the options in 21 is fine as the effect of these options has been removed before 21.
I do not and can not backport the deprecation part of the change.