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?
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?
You need to use Idea 12+ Ultimate Edition
play idea
to generate projectplay idea
required since IDEA supports play/sbt projects? –
Chlamydeous Using activator :
Generate
Open Intellij IDEA
You need to use Idea 12+ Ultimate Edition
play idea
to generate projectplay idea
required since IDEA supports play/sbt projects? –
Chlamydeous Preparation: Do not use the project creation by activator ui or similar. Just open the project in IntelliJ.
activator -jvm-debug 9999 ~run
. The ~
before run
enables automatic reloading of generated HTML pagesPro hint: Check out the play-auto-refresh plugin to have Chrome automatically reloading on a change.
(based on @ARM's answer)
FYI : All of the above fields might filled up already
-XX:+CMSClassUnloadingEnabled
do? –
Rushy this works for me and maybe easier
file menue => settings => Build, Execution, Deployment => sbt => check "Enable debugging for sbt shell"
idea sbt shell now will start with debug enable, log out the port as "Listening for transport dt_socket at address: 52701"
Run/Debug Configurations => Add(the pluss(+) sign) => Remote => Set "Port" And "Use module classpath"
just type run in sbt shell, then click debug button
screent shot
© 2022 - 2024 — McMap. All rights reserved.