Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug Playframework 2.0 in Eclipse

There's no eclipse folder in project folder after 'play eclipsify'. How to debug this project use eclipse with JPDA?

like image 836
fxp Avatar asked Mar 19 '12 22:03

fxp


3 Answers

Since play 2.0, only thing need to do to debug a project is run project in console 'play debug run' and create a new debug conf of remote java application with port 9999

like image 62
fxp Avatar answered Oct 20 '22 23:10

fxp


Exactly as fxp has said, in play 2.2.x you should do the following:

  1. Type in the play console play debug run
  2. In eclipse, right click over your project and go to Debug As, and then click on Debug configurations..
  3. In Debug configurations screen, go and click to Remote Java Application.
  4. Put 9999 in the port input text (*)

(*): when you execute play debug run, look the print information for the port number. Probably the first message will be

Listening for transport dt_socket at address: 9999

like image 42
Gere Avatar answered Oct 20 '22 23:10

Gere


In Play 2.3.x, you need to start the application with:

activator -jvm-debug 9999 run

Then follow all the other steps in the other answers.

Setting up your preferred IDE

like image 32
Foo L Avatar answered Oct 20 '22 23:10

Foo L