Skip to content

Commit 59496ab

Browse files
author
Phillip Webb
committed
Add mvnDebug how-to
Fixes gh-713
1 parent 51c403b commit 59496ab

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,20 @@ third-party dependencies. Overriding versions may cause compatibilty issues.
12531253

12541254

12551255

1256+
[[howto-remote-debug-maven-run]]
1257+
=== Remote debug a Spring Boot application started with Maven
1258+
To attach a remote debugger to a Spring Boot application started with Maven you can use
1259+
the `mvnDebug` command rather than `mvn`. For example:
1260+
1261+
[indent=0]
1262+
----
1263+
$ mvnDebug spring-boot:run
1264+
----
1265+
1266+
You can now attach a remote debugger to your running application on port `8000`.
1267+
1268+
1269+
12561270
[[howto-build-an-executable-archive-with-ant]]
12571271
=== Build an executable archive with Ant
12581272
To build with Ant you need to grab dependencies, compile and then create a jar or war

0 commit comments

Comments
 (0)