I'm trying to debug a spring-boot application with Intellij Idea's Remote debugger.
I run my app locally on my development machine with Intellij Idea "Spring Boot" run configuration, with the following VM options configured in run configuration:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
I have no other java apps running.
Then I run another Intellij Idea run configuration "Remote Debugger". It has the following config:
host: localhost; port:5005, debugger mode: Attach to remote JVM
I can see the following message in console:
Connected to the target VM, address: 'localhost:5005', transport: 'socket'.
But the breakpoints in controller classes and other components are ignored.
BUT!!! If i select my Spring Boot run configuration and simply run it in debug mode (so that there is no need for running a separate Remote Debugger run config) breakpoints work as expected.