There seems to be extensive documentation for debugging Play applications with IntelliJ IDEA, but they all assume that Play is built with SBT.
Debugging with Gradle should be as easy as:
- Set some breakpoints
GRADLE_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9999" gradlew --no-daemon :runPlayBinary
- Run an IntelliJ Remote Configuration to attach to the Gradle process
- Hit http://localhost:9000 and do something interesting to cause a breakpoint to be hit
The problem I’m having is: the breakpoint is never hit, processing continues as normal. Technologies: Play 2.3.X, IDEA 14.1, Gradle 2.8, Scala 2.10
I must be missing something, what is it?