eMko
eMko

Reputation: 1143

Scala IDE + Play Framework - no breakpoint hit

I ran the Play Framework website using "activator -jvm-debug 9999 ~run" command as stated in the documentation and used "Remote Java Application" debug configuration in Scala IDE. From the Debug perspective, it looks it's connected.

However no breakpoint is ever hit. Is there a way to fix it, please?

Upvotes: 2

Views: 277

Answers (2)

eMko
eMko

Reputation: 1143

The reason it didn't work was hidden in the build.sbt, the fork in run was set to true.

With setting

fork in run := false

the debugger works.

Upvotes: 1

pedrorijo91
pedrorijo91

Reputation: 7845

1st I would recommend to use simply sbt: sbt -jvm-debug 9999 run

2nd, you need to connect the scala IDE to the jvm process (never did in Scala IDE, just Intellij, but found this docs)

finally, there are some (rare) problems in more complex scala lines of code. Try to set the breakpoint in more simple lines (declarations of values for instance)

Upvotes: 0

Related Questions