mirror of
https://github.com/ysoftdevs/gradle-training.git
synced 2026-01-16 08:37:00 +01:00
information about debugging gradle
This commit is contained in:
16
16-debug-gradle-script/build.gradle
Normal file
16
16-debug-gradle-script/build.gradle
Normal 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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
15
README.md
15
README.md
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user