Ok, I figured it out.
So, I actually do not start the application from the Eclipse debugger. I launch the application via sbt and then connect the Eclipse remote debugger to sbt vm, which launches webapp.
Here is what I did:
Assuming you have sbt-launch.jar in / bin:
Create the / bin / sbt _debug file with execute permission and containing this line:
java -Xmx512M -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar /bin/sbt-launch.jar " $@ "
What this script does is run sbt and tell jvm to enable debugging on port 5005
Go to your elevator project directory in your terminal and enter sbt_debug. Once you get to the sbt console, enter the container: start / container: update or ~ jetty: start / ~ jetty: update depending on which version of sbt you are using.
Next, go to Eclipse, click the debug icon, and select "Debug Configurations ..."
In the left column, click “Remote Java Application” and create a new debug configuration. Set the port to 5005.
Click the Debug button, and the Eclipse debugger should now debug the sbt process that you started earlier
Note. This is the first method that worked for me. If you have one that is better, please share
Blake source share