Debug Playframework in Eclipse

前端 未结 7 1737
庸人自扰
庸人自扰 2021-01-30 13:17

I just moved from Netbeans to Eclipse. In Netbeans, I can debug Playframework applications out of the box. However, in Eclipse, it seems hard to configure this in order to debug

7条回答
  •  耶瑟儿~
    2021-01-30 13:55

    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.

提交回复
热议问题