Debug Playframework in Eclipse

前端 未结 7 1654
庸人自扰
庸人自扰 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:45

    If you run "play eclipsify" on the project folder, it will create two run configurations. Looking at the run configuration details, you should check if the following line (or something similar) is in the "VM arguments":

    -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
    -Dplay.debug=yes
    -Dplay.id=test -Dapplication.path="${project_loc:NMKServer}"
    -Djava.endorsed.dirs="c:\Java\play-1.2.2/framework/endorsed"
    -javaagent:"c:\Java\play-1.2.2/framework/play-1.2.2.jar"
    

    Here you can configure the debugging port. With this config, I can attach to process using the instructuctions you have.

提交回复
热议问题