Remote SBT Debugging

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!

Answers


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


Need Your Help

External Repository Changes

svn version-control

I use svn:externals to reference several open source projects. I then make some local changes to one of these external projects. Obviously I cannot check these changes back into the external reposi...

What is the point of this line of code?

php virtuemart

I found this line of code in the Virtuemart plugin for Joomla on line 2136 in administrator/components/com_virtuemart/classes/ps_product.php