information about debugging gradle

This commit is contained in:
Juraj Michalek
2014-06-23 22:13:47 +02:00
parent fe7b073aa8
commit 50ca99832e
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
class Brno {
def stopMe() {
def message = "Good place for break point."
println message
}
}
task hello {
doLast {
println "You can't stop me here!"
def city = new Brno()
city.stopMe()
}
}

View File

@@ -163,3 +163,18 @@ Plugin is just counting lines in build.gradle file in current directory.
gradle tasks
gradle countLines
## 16-debug-gradle-script
Do not run in daemon mode.
Set environment variable GRADLE_OPTS to
"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
Start gradle task
gradle hello
Attach remote debugger from Ide.
More information: http://georgik.sinusgear.com/2014/06/23/how-to-debug-gradle-script/