Skip to content

Instantly share code, notes, and snippets.

@NicolaeNMV
Created January 21, 2014 14:49
Show Gist options
  • Save NicolaeNMV/8541438 to your computer and use it in GitHub Desktop.
Save NicolaeNMV/8541438 to your computer and use it in GitHub Desktop.
How to launch a play2 application in debug mode with sbt
# Declare a env. variable with JPDA params
export SBT_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999 "
sbt run
# You should see: "Listening for transport dt_socket at address: 9999"
# From your IDE, configure Remote Debugging. As described here http://www.playframework.com/documentation/2.2.x/IDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment