Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33336

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

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • gradle-jpi-plugin
    • None
    • 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.

          [JENKINS-33336] Cannot debug with gradlew server while org.gradle.daemon = true

          Solving 33209 should solve 33336 as well.

          Sergey Kadaner added a comment - Solving 33209 should solve 33336 as well.

          Steve Hill added a comment -

          Debugging the server task is possible by passing the -Dorg.gradle.debug=true parameter.

          Steve Hill added a comment - Debugging the server task is possible by passing the -Dorg.gradle.debug=true parameter .

            sghill Steve Hill
            sergeyk Sergey Kadaner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: