1

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!

Community
  • 1
  • 1
ivcheto
  • 205
  • 3
  • 10

1 Answers1

3

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

melps
  • 1,247
  • 8
  • 13