Spring Boot Debug mode in Eclipse Photon not working

982 views java
4

I am launching a Spring boot application I have set a breakpoint when Spring boot instance is running, Eclipse don't catch any breakpoint.

I setted the goal:

spring-boot:run

What I am doing wrong?

Thanks

answered question

Eclipse IDE. spring-boot:debug Could not find goal 'debug' in plugin org.springframework.boot

sorry can you try this mvnDebug spring-boot:run

1 Answer

7

Option A: Go to the main class > right click > debug as java application

Option B: Use the following command, and from eclipse set up remote debugging for your project on the port 5870

mvn spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5870"

posted this

Have an answer?

JD

Please login first before posting an answer.