Reputation: 205
I am using sbt container:start shell
to start my scala application and I'm wondering how I could specify a debug port to write to, so that I can set up remote debugging in IntelliJ.
I've tried specifying something along the lines of jvm-debug 5005
as suggested here, but that caused the process to not start.
Thanks!
Upvotes: 1
Views: 1344
Reputation: 1247
Export your sbt_opts:
SBT_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
Then setup a remote debuging configuration in intellij connecting to localhost 5005
Upvotes: 3