Update Gradle remote debug documentation
Update the documentation to reference the `bootRun` command rather than `run`. Closes gh-6461
This commit is contained in:
parent
753a7e1d33
commit
d7a1730b50
|
|
@ -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
|
||||
----
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue