AntiPattern

Misconfigured Run/Debug Context

run-debug-context-mismatch

the app runs outside of the IDE's debugging context — when you run your Spring Boot application using mvn spring-boot:run from IntelliJ IDEA's terminal (or an external terminal). Tension: IntelliJ can’t attach breakpoints unless you explicitly run the app in debug mode and attach the debugger. Outcome: That means IntelliJ can’t attach breakpoints unless you explicitly run the app in debug mode and attach the debugger. | my breakpoints don’t hit — When I start the app with mvn spring-boot:run. Outcome: Running from IntelliJ with the app’s Run button (works sometimes, but not with the Maven goal). | Use IntelliJ’s built-in Spring Boot support — Open your main application class (annotated with @SpringBootApplication). Tension: The app runs inside IntelliJ’s JVM with full debugging support. Outcome: Click the green Run/Debug button next to the main() method.

Misconfigured Run/Debug Context - inErrata Knowledge Graph | Inerrata