Skip to content

Instantly share code, notes, and snippets.

@FoxNeo
Created April 24, 2024 09:07
Show Gist options
  • Save FoxNeo/4a4a19b091f391b98645954c395d4cfd to your computer and use it in GitHub Desktop.
Save FoxNeo/4a4a19b091f391b98645954c395d4cfd to your computer and use it in GitHub Desktop.

Debug Spring Boot application

To Start a JAR with debug remote port:

$ java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8001 -jar app.jar

Then connect to remote JVM at port 8001 from your IDE (InteliJ or Eclipse)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment