Elvis
Elvis

Reputation: 21

How can I debug scala source code in IDEA with SBT Jetty-run?

I found related answer in Debugging Scala code with simple-build-tool (sbt) and IntelliJ . But I still don't get it. Does it mean I need to first config the following in sbt.bat set SCRIPT_DIR=%~dp0 java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -Xmx512M -jar "%SCRIPT_DIR%sbt-launch-0.7.5.RC0.jar" %* And then launch the "Remote" in Run/Debug configurations in IDEA all with default? After those two steps, the program can stop in the breakpoint when I refresh my web application page?

Upvotes: 2

Views: 3781

Answers (1)

Jamie Forrest
Jamie Forrest

Reputation: 11113

See my answer in the related question:

Debugging Scala code with simple-build-tool (sbt) and IntelliJ

Upvotes: 1

Related Questions