I can't get the debugger to work. Steps to reproduce:
1) sbt lagom:runAll
2) sbt -jvm-debug 5005
3) Set remote config in Intellij + start debugging
4) Set breakpoints
5) Make request
The debugger doesn't stop at the breakpoints.
What is the problem here?
You need to use the -jvm-debug
flag on the sbt runAll
command, like this:
sbt -jvm-debug 5005 runAll
The following steps in your list are correct.
When you run sbt runAll
and sbt -jvm-debug 5005
as separate commands, you are creating two separate sbt sessions: one that runs your services, and the other is doing nothing but waiting for input at the prompt. When you connect your debugger, it is connecting to the second, idle session, instead of the one that is running your services.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With