Skip to content

Instantly share code, notes, and snippets.

@danieltnaves
Forked from jonashackt/bash
Created July 5, 2017 19:40
Show Gist options
  • Save danieltnaves/7e59b7f43acb99d75e296ce1be7d3fcf to your computer and use it in GitHub Desktop.
Save danieltnaves/7e59b7f43acb99d75e296ce1be7d3fcf to your computer and use it in GitHub Desktop.
Remote debugging Spring Boot
### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment