ITeye博客

play2的两种debug方式

Aaron5 · 2014-04-11 11:14 · play2 scala · 开源软件 · Markdown

首先吐槽下play2的编译启动速度(sbt你可以把t去掉了么),赞一下play1的动态编译和重启速度。

play2在Intellij idea上的调试: 第一种方式:安装play2 support插件调试。然后如图配置即可:

第二种方式: 在命令行用play debug命令启动9999 debug端口。 然后用play run或者play start启动项目(区别在于run是开发模式会动态加载代码,start是线上模式不会动态加载代码)。 最后在ide(不限于Intellij,用eclipse或者netbeans都一样)上配置个remote debug,并且把端口设置为9999即可。 (Intellij idea的配置如下图):

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。