I’m trying to debug some unit tests I’ve written but the gradle daemon seems to always launch, ignoring any options I’ve set.
Mac OS X 10.9.5 Java 1.7 Gradle 2.2.1
Launching gradle with: ./gradlew test --no-daemon -Dorg.gradle.debug=true causes the following line to appear To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html.
If I add -d, it turns out that the daemon has launched and is waiting on port 5005 for a debugger: http://pastebin.com/TqaXubmr
Finally, if I then launch a debugger attaching to port 5005 the tests run but none of the breakpoints are hit.
The gradle.properties is empty, I don’t set GRADLE_OPTS or org.gradle.jvmargs.