I am trying the Scala Scalatra web framework. According to the documentation here , the steps to enable IntelliJ debugging are:
- Add the usual JDK options for remote debugging:
"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005" - Create a “Remote” Startup Configuration in Intellij
- Run
sbt, run sbt jetty:start, and then run the remote debugger.
When I do this, the SBT prints out:
Listening for transport dt_socket at address: 5005
And IntelliJ prints:
Connected to the target VM, address: 'localhost:5005', transport: 'socket'
However, breakpoints do not seem to work. When I click on the following endpoint with a breakpoint at *:
class AppServlet extends AppStack {
get("/break-test") {
* val response = "DONE"
response
}
}
The code does not stop at this line, but continues, so I get the answer DONE. "
I am using Java 1.8.0_111, Scala 2.12 and SBT 0.13.15.