Comment out or remove
fork in run := true
Create a remote debug configuration:
Run > Edit Configurations > Add New Configuration > Remote
9999, name your configuration. I called mine “Debug Activator” then click “Apply”, the “OK”.
From the command line:
$ activator -jvm-debug 9999
Once that starts go back to IntelliJ and start your debug configuration. Then return to the command line prompt and execute:
You don’t have to do the command line in two steps. That’s just if you want to debug the application startup. Otherwise this will work just fine:
$ activator run -jvm-debug 9999
Then just set a breakpoint and make a request.