Updated remote vm debug command-line options

This commit is contained in:
dragonmacher 2021-03-23 13:45:33 -04:00
parent 1b36a099f4
commit ca2a6bbb0a
5 changed files with 30 additions and 19 deletions

View file

@ -179,10 +179,18 @@ def initTestJVM(Task task, String rootDirName) {
'-Djdk.attach.allowAttachSelf',
'-javaagent:' + jmockitPath,
'-DLock.DEBUG=true',
'-Xdebug',
'-Xnoagent',
'-Djava.compiler=NONE',
'-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=' + debugPort
'-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=' + debugPort
// Note: modern remote debug invocation;
// -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
//
// We removed these lines, which should not be needed in modern JVMs
// -Xdebug
// -Xnoagent
// -Djava.compiler=NONE
// -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
}
}
/*********************************************************************************