Play with eclipse debug
1, 進入項目目錄
2,cmd, 輸入 play debug,系統顯示監聽端口9999
3,在eclipse中,右擊項目,debug as,在彈出的窗口中,新建一個 remote java application 配置,端口號輸入:9999,其他不變。
點擊debug,如果沒有錯誤,說明成功連接到遠程應用(即:play運行的jvm)
4,play console啓動後,輸入run, 啓動server, 系統顯示web端口9000
5,加一個斷點
6,在瀏覽器中輸入:localhost:9000,如果一切正常,eclipse應該進入調試模式,並且停在斷點位置
注:3,4的順序,據測試,如果3,4的順序不對,不能進入斷點
Activator with eclipse debug
1, 進入項目目錄
2. cmd,輸入activator -jvm-debug 9999 run
3.在eclipse中,右擊項目,debug as,在彈出的窗口中,新建一個 remote java application 配置,端口號輸入:9999,其他不變。
點擊debug,如果沒有錯誤,說明成功連接到遠程應用(即:play運行的jvm)
4.加一個斷點
5.在瀏覽器中輸入:localhost:9000,如果一切正常,eclipse應該進入調試模式,並且停在斷點位置