From d7a1730b50327ff155055c8a52efcab7607805bc Mon Sep 17 00:00:00 2001 From: Biju Kunjummen Date: Mon, 25 Jul 2016 22:29:59 -0400 Subject: [PATCH] Update Gradle remote debug documentation Update the documentation to reference the `bootRun` command rather than `run`. Closes gh-6461 --- spring-boot-docs/src/main/asciidoc/howto.adoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index 5cfd1a9c95..6bb505bd9e 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -2722,15 +2722,15 @@ Check {spring-boot-maven-plugin-site}/examples/run-debug.html[this example] for [[howto-remote-debug-gradle-run]] === Remote debug a Spring Boot application started with Gradle To attach a remote debugger to a Spring Boot application started with Gradle you can use -the `applicationDefaultJvmArgs` in `build.gradle` or `--debug-jvm` command line option. +the `jvmArgs` property of bootRun task OR `--debug-jvm` command line option. `build.gradle`: [source,groovy,indent=0,subs="verbatim,attributes"] ---- - applicationDefaultJvmArgs = [ - "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" - ] + bootRun { + jvmArgs "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" + } ---- @@ -2738,7 +2738,7 @@ Command line: [indent=0] ---- - $ gradle run --debug-jvm + $ gradle bootRun --debug-jvm ----