Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play Framework Intellij community edition debug mode Java

I'm not able to run play project in debug mode in intellij IDE community edition. I've followed the instructions Play Framework setting up IDE page, and did not manage to catch any breakpoint from the IDE, I've also tried the answers here, here and here, and still nothing worked. Running activator -jvm-debug 9999 run from the console started the project, then running a remote debugging session on port 9999 from intellij also seemed to work, but breakpoints were not stopping the session at all.

I'm using Play Framework 2.4 and Intellij community edition 15.

like image 567
Aviv Carmi Avatar asked Dec 24 '22 10:12

Aviv Carmi


2 Answers

SOLVED IT!

The reason breakpoints were not stopping on the IDE was because I a fork command at the end of my build.sbt file:

fork in run := true

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

No reason the community edition of intellij won't be able to debug a simple play application. This answer was very helpful for everyone who gets lots in his way to setting up a simple environment to develop and debug Play Framework application.

like image 80
Aviv Carmi Avatar answered Jan 17 '23 18:01

Aviv Carmi


Support for Play Gramework (and for other famous frameworks) is available for Ultimate version of IntelliJ Idea and that's obvious.

Guys from JetBrains does great job and they just need some kind of gratification for it!

like image 40
biesior Avatar answered Jan 17 '23 16:01

biesior