Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-3459

Use newer agentlib:jdwp JVM TI interface in default debugger options instead of old pre 5.0 JVMDI interface

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0-milestone-1, 3.0-rc-2

      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.

        Attachments

          Activity

            People

            Assignee:
            lhotari Lari Hotari
            Reporter:
            lhotari Lari Hotari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: