[GRADLE-3459] Use newer agentlib:jdwp JVM TI interface in default debugger options instead of old pre 5.0 JVMDI interface Created: 27/May/16  Updated: 25/Jan/17  Resolved: 27/May/16

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 3.0-milestone-1, 3.0-rc-2

Type: Improvement
Reporter: Lari Hotari Assignee: Lari Hotari
Resolution: Fixed Votes: 0


 Description   

From http://docs.oracle.com/javase/6/docs/technotes/guides/jpda/conninv.html#Invocation :

From 5.0 onwards the -agentlib:jdwp option is used to load and specify options to the JDWP agent. For releases prior to 5.0, the -Xdebug and -Xrunjdwp options are used (the 5.0 implementation also supports the -Xdebug and -Xrunjdwp options but the newer -agentlib:jdwp option is preferable as the JDWP agent in 5.0 uses the JVM TI interface to the VM rather than the older JVMDI interface).

Gradle should use -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 instead of -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 to enable the debugger.


Generated at Wed Jun 30 12:49:23 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.