Cannot debug with gradlew server while org.gradle.daemon = true

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Minor
    • Component/s: gradle-jpi-plugin
    • None
    • Environment:
      Java 7, Gradle 2.11, JPI plugin 0.14.1, Windows 7

      The server started with gradlew server cannot be debugged if Gradle daemon is used.

      I use GRADLE_OPTS to pass debug arguments to JVM, but it seems that debugger connects to a wrong process. It connects successfully, but never stops at breakpoints.

      Setting org.gradle.daemon = false solves the issue.

            Assignee:
            Steve Hill
            Reporter:
            Sergey Kadaner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: