Search code examples
intellij-ideaplayframeworkplayframework-2.0typesafe-activator

How to run Play Framework 2.x in debug mode in IntelliJ IDEA?


I want to run Play Framework 2.x in debug mode in IntelliJ IDEA. I searched in the Internet and all results say that you have to use play console.

Is it possible to run in debug mode in IntelliJ IDEA without using play console?


Solution

  • You need to use Idea 12+ Ultimate Edition

    • Install Play 2.0 Support, Scala and other required plugins in Idea
    • In command line perform play idea to generate project
    • Open created project in Idea (open, don't import)
    • Go to: Menu > Run > Edit Configurations... > Add New Configuration... > choose Play 2 App
    • In Menu > Run new buttons will appear Debug and Run, first will run app with enabled debbuger.