-
-
Save jonashackt/c1fd6fabdb014be9c4b935798454e17a to your computer and use it in GitHub Desktop.
Remote debugging Spring Boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### java -jar | |
java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8001,suspend=y -jar target/cxf-boot-simple-0.0.1-SNAPSHOT.jar | |
### Maven | |
Debug Spring Boot app with Maven: | |
mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8001" | |
On bash: | |
export MAVEN_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y" | |
(or on Windows: set MAVEN_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y") | |
mvn clean install | |
In Eclipse: | |
New Remote debugging app to port 8000 on localhost |
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8001,suspend=n,quiet=n
To enable stdout
thank you
thank you.
thank you.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, but it the webservices I was trying to deploy in my jar didn't work for me until I changed the command slightly: suspend=n instead of suspend=y