Play Framework Intellij Community Edition Java debugging mode

I cannot start a game project in debug mode in the release of the public IDE community. I followed the instructions of the Play Framework by setting up the IDE , and could not catch a breakpoint from the IDE, I also tried the answers here , here and here , and so far nothing has worked. Running activator -jvm-debug 9999 runfrom the console started the project, and then starting a remote debugging session on port 9999 from intellij also seemed to work, but breakpoints did not stop the session at all.

I am using Play Framework 2.4 and Intellij community version 15.

+4
source share
4 answers

WE SOLVE IT!

The reason the breakpoints didn't stop in the IDE was because I wrote the fork command at the end of my build.sbt file:

fork in run := true

As I deleted this line, everything worked as I expected.

There is no reason the intellij community will not be able to debug a simple game. This answer was very useful for anyone who gets a lot of opportunities to create a simple environment for developing and debugging a Play Framework application.

+7
source

Support for Game Gramework (and for other well-known frameworks) is available for the Ultimate version of IntelliJ Idea, and this is obvious.

The guys at JetBrains are doing a great job and they just need some satisfaction!

+1
source

PlayFramework support is only available in the Ultimate version and not in the community version. Intellij Ultimate vs Community

+1
source

In the intellij community:

  • Create a new Run / Debug configuration
  • Choose JAR Application

    Path to jar : /Users...../sbt-launch.jar
    VM options: -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled
    -debug 
    -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
    Program arguments : run
    

Do not forget to build.sbt

fork in run := true

After starting directly to the debug button. Enjoy it.

+1
source

Source: https://habr.com/ru/post/1625719/


All Articles