Play app run debug configuration

I am using IntelliJ 12 and imported an existing Play app but I have switched to only using sbt and not play, e.g., sbt run, sbt compile, etc. This is because I have switched to only using Paul's sbt-extras script
https://github.com/paulp/sbt-extras

I encountered issues with prepping the Play project for IntelliJ since the examples are all using Play and I use sbt. I ended up doing the following to get it properly imported into IntelliJ
http://stackoverflow.com/questions/15823291/intellij-play-make-project-error-not-found-object-keys. Note that I started with Play 2.0.4 and had to downgrade to 2.0.1 in order for "sbt gen-idea" to work.

My next problem is how to configure the project to run / debug in IntelliJ, I tried to follow the instructions here but without success
http://www.jetbrains.com/idea/webhelp/play-framework.html#h2%0A____________creating_a_run/debug_configuration_for_debuggingaswrittencreate_run_config_for_debugging

Again, the instructions assume the usual Play setup and it doesn't work for me.

Any insights will be much appreciated.

Thanks,
Bob

2 comments

Hello,

http://www.jetbrains.com/idea/webhelp/play-framework.html describes support of the Play 1.x, and it is irrelevant to Play 2.x

For Play 2, it is unimportant if you use play console or sbt console, because IDEA automatically detects Play's location from project libraries, but you can set custom framework's location in the run configuration settings.
To run your application you can create new configuration in the menu 'Edit Run\Debug Configurations...' or right click at any source file at play 2 project and select 'Run Play 2 App'

0

Yeah, I tried that approach but unable to find the exact values to get it to run, if you have an actual example, let me know.

Thanks,
Bob

0

Please sign in to leave a comment.