Skip to content

Commit 0e5046a

Browse files
author
Steve Cirelli
committed
* Gradle task to allow remote debugging in Eclispse.
Run `./gradlew -DDEBUG=true run` Setup remote debugging on port 9099.
1 parent c45a79f commit 0e5046a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

desktop/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,9 @@ task afterEclipseImport(description: "Post processing after project generation",
7676
printer.print(classpath)
7777
}
7878
}
79+
80+
tasks.withType(JavaExec) {
81+
if (System.getProperty('DEBUG', 'false') == 'true') {
82+
jvmArgs '-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9099'
83+
}
84+
}

0 commit comments

Comments
 (0)