Open up your preferences, and go to your SBT settings. You want to add this to your VM Parameters: “-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005″

Now to debug, you need to create a new debugging profile of type “Remote”

And make sure that it is running with your sbt debug line ” -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005″, and verify that the settings are set to transport:socket, debugger mode: Attach, and host:localhost on port 5005.

Set breakpoints and enjoy.

One response


Do you want to comment?

Comments RSS and TrackBack Identifier URI ?

Very helpful, thanks! The stackoverflow questions all deal with jetty which is confusing.
I had to restart IntelliJ to get the debugger to stop when running from the SBT console. Maybe the updated SBT plugin settings needed to be loaded correctly.

October 9, 2011 8:12 pm

Comment now!
















Trackbacks