From 59496abf85d40e1e8e5bfd21fd3408d5f29be806 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 23 Apr 2014 23:09:53 +0100 Subject: [PATCH] Add mvnDebug how-to Fixes gh-713 --- spring-boot-docs/src/main/asciidoc/howto.adoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index 544199d23eb..31e45781c54 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -1253,6 +1253,20 @@ third-party dependencies. Overriding versions may cause compatibilty issues. +[[howto-remote-debug-maven-run]] +=== Remote debug a Spring Boot application started with Maven +To attach a remote debugger to a Spring Boot application started with Maven you can use +the `mvnDebug` command rather than `mvn`. For example: + +[indent=0] +---- + $ mvnDebug spring-boot:run +---- + +You can now attach a remote debugger to your running application on port `8000`. + + + [[howto-build-an-executable-archive-with-ant]] === Build an executable archive with Ant To build with Ant you need to grab dependencies, compile and then create a jar or war