-
-
Save jonigl/87f4ce9ed7d0fcd226cec58e0afcd105 to your computer and use it in GitHub Desktop.
Remote debugging Spring Boot
This file contains hidden or 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 | |
| address = ip:port | |
| address = *:port (* wildcard allow any ip address) | |
| java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=*:5005,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=*:5005" | |
| ### On bash: | |
| export MAVEN_OPTS="-agentlib:jdwp=transport=dt_socket,address=*:5005,server=y,suspend=y" | |
| (or on Windows: set MAVEN_OPTS="-agentlib:jdwp=transport=dt_socket,address=*:5005,server=y,suspend=y") | |
| mvn clean install | |
| ### In Eclipse / IntelliJ ### | |
| New Remote debugging app to port 8000 on localhost / IP to server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment