Debug Playframework in Eclipse

As of Play 2.0, the eclipse folder and launchers are no longer generated when you run play eclipsify. After running play eclipsify, you can debug your project in Eclipse as follows:

  1. In a console outside of eclipse, run play debug run.
  2. In Eclipse, right-click your project, then choose Debug As -> Debug Configurations...
  3. Right-click Remote Java Application, then click New.
  4. The host should already be set to localhost. Set the port to 9999 (the default port used by the play debug run command).
  5. Click Apply to save, then Debug to connect to your running Play instance.

Leave a Comment