Skip to content

Instantly share code, notes, and snippets.

@jonashackt
Last active Sep 9, 2021
Embed
What would you like to do?
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
@danieltnaves

This comment has been minimized.

Copy link

@danieltnaves danieltnaves commented Jul 5, 2017

Thanks!

@eaudet

This comment has been minimized.

Copy link

@eaudet eaudet commented Mar 12, 2018

Thanks!

@joviqiao

This comment has been minimized.

Copy link

@joviqiao joviqiao commented Mar 30, 2018

Thx. got it.

@daveyx

This comment has been minimized.

Copy link

@daveyx daveyx commented Jul 19, 2018

thx!

@lpigna

This comment has been minimized.

Copy link

@lpigna lpigna commented Aug 11, 2018

thank you!!!

@felix19350

This comment has been minimized.

Copy link

@felix19350 felix19350 commented Sep 29, 2018

Thanks!

@lsantamaria

This comment has been minimized.

Copy link

@lsantamaria lsantamaria commented Oct 7, 2018

Thanks!

@sergionet17

This comment has been minimized.

Copy link

@sergionet17 sergionet17 commented Oct 19, 2018

thanks

@f0r3v3ran00b

This comment has been minimized.

Copy link

@f0r3v3ran00b f0r3v3ran00b commented Nov 21, 2018

Thanks a lot! Is there something similar for when using Gradle?

@roadcoder

This comment has been minimized.

Copy link

@roadcoder roadcoder commented Feb 13, 2019

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

@backtozero

This comment has been minimized.

Copy link

@backtozero backtozero commented Sep 18, 2019

-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8001,suspend=n,quiet=n

To enable stdout

@ndgo

This comment has been minimized.

Copy link

@ndgo ndgo commented Dec 18, 2019

thank you

@bahcetepe

This comment has been minimized.

Copy link

@bahcetepe bahcetepe commented Aug 19, 2020

thank you.

@mengqi1984

This comment has been minimized.

Copy link

@mengqi1984 mengqi1984 commented Apr 15, 2021

thank you.

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