Breakpoints not working in spring boot app

已回答

I downloaded latest Community Edition intellij idea IDEA 2 month ago. When I debug sprint boot project, program does not stop on breakpoints, it continues to run as if no breakpoints were set. What is causing this issue?

The project is maven based and is configured to use sprint-boot:run command when the project is run (click on play button on top right of the IDE. to debug I click on bug icon on top right.

0
Hi,

The Maven `sprint-boot:run` runs the app in a forked process which can be debugged from the IDEA side directly. 
You could try the suggestion here to fix it: https://youtrack.jetbrains.com/issue/IDEA-175246/Debug-doesnt-work-for-spring-bootrun-maven-goal#focus=Comments-27-4758555.0-0
Or open the main class annotated with `@SpringBootApplication`, and click the run icon in the IDE's left gutter to debug it directly.
0

请先登录再写评论。