现在的位置: 首页 > 综合 > 正文

play framework 1,2的debug方法对比

2013年10月09日 ⁄ 综合 ⁄ 共 585字 ⁄ 字号 评论关闭

play1

1)先将项目eclipsify后导入到eclipse中,然后导入eclipse,

2)设置 debug point(调试时的停顿点)

3)在eclipse的package explorer中,找到项目文件夹下的eclipse文件夹,选择"Test 项目名.launch"文件,点右键选择运行->这样便可启动play项目

4)在相同文件夹下找"Connect JPDA to 项目名.launch"文件,右键选择debug as Remote Java Application 

 -----------------------------------

play2

1)先将项目eclipsify后导入到eclipse中,然后导入eclipse,

2)设置 debug point(调试时的停顿点)

3)打开cmd,在项目文件夹下运行 play debug run

4)在eclipse的package explorer中,在项目文件夹上点右键,选择 Remote Java Application, 新建一个debug,

connection type: standard (socket attach)

connection properties: Host: localhost      Port: 9999

执行debug

5) 在浏览器上启动http://localhost:9000/即可在eclipse中看到debug point的执行情况

抱歉!评论已关闭.