Commit 618e6d6b authored by Phillip Webb's avatar Phillip Webb

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

* pr/6461:
  Update Gradle remote debug documentation
parents 753a7e1d d7a1730b
......@@ -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
----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment