Play framework Intellij idea debug 調試

當play開發環境配置完成以後.在idea的Run/Debug Configurations面板中添加一個appliction應用.

1.設置Main class

play.server.Server

2.設置VM parameters

-Dapplication.path="."

或者是工程根目錄全路徑

 

-javaagent:"D:/java/play-1.2.1/framework/play-1.2.1.jar"

直接指向play-1.2.1.jar文件.注意每個版本的play jar名字不一樣

 

3.選着向對應的module.

基本設置完成後。可以在集成環境下進行run,debug調試.