Merge pull request #6461 from bijukunjummen/gradle-debug-fix

* pr/6461:
  Update Gradle remote debug documentation
pull/6486/head
Phillip Webb 8 years ago
commit 618e6d6bf4

@ -2722,15 +2722,15 @@ Check {spring-boot-maven-plugin-site}/examples/run-debug.html[this example] for
[[howto-remote-debug-gradle-run]] [[howto-remote-debug-gradle-run]]
=== Remote debug a Spring Boot application started with Gradle === 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 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`: `build.gradle`:
[source,groovy,indent=0,subs="verbatim,attributes"] [source,groovy,indent=0,subs="verbatim,attributes"]
---- ----
applicationDefaultJvmArgs = [ bootRun {
"-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" jvmArgs "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"
] }
---- ----
@ -2738,7 +2738,7 @@ Command line:
[indent=0] [indent=0]
---- ----
$ gradle run --debug-jvm $ gradle bootRun --debug-jvm
---- ----

Loading…
Cancel
Save