玩!框架2.2.0:不可能在Eclipse中调试 [英] Play! Framework 2.2.0 : impossible to debug in Eclipse

查看:163
本文介绍了玩!框架2.2.0:不可能在Eclipse中调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用Eclipse(开普勒)在Play中调试我的单元测试!项目。
我发起播放调试。在Eclipse中,我使用命令行输出提供的端口在调试配置中创建了一个远程Java应用程序。单击应用,然后调试,添加断点。在我的Play项目的命令提示符下,我启动了测试
Eclipse绝对不会在断点处停止。这很讨厌我在Windows 7 Pro 64位。



感谢您的帮助

解决方案

添加:

  val main = play.Project(appName,appVersion,appDependencies).settings(
/ /在这里添加你自己的项目设置
Keys.fork in(Test):= false

在您的Build.scala中解释,这里



在您的Play中使用命令行!项目:




  • 播放清洁

  • 播放编辑

  • 试用

  • (在eclipse中)运行调试远程

  • test



我只是在Keppler测试,对我来说很好;)


I'm trying to debug my unit tests with Eclipse (Kepler), in a Play! project. I launched play debug. In Eclipse, I created a Remote Java Application in Debug Configurations with the port supplied by the output of the command line. Clicked Apply, then Debug, added breakpoints. In the command prompt of my Play project, I launched test. Eclipse never stops at the breakpoints. It's very annoying. I'm on Windows 7 Pro 64bits.

Thanks for your help

解决方案

Add:

val main = play.Project(appName, appVersion, appDependencies).settings(
   // Add your own project settings here
   Keys.fork in (Test) := false
)

in your Build.scala as explained here

With command line in your Play! project:

  • play clean
  • play compile
  • play debug
  • (in eclipse) run your debug remote
  • test

I just test it in Keppler, works fine for me ;)

这篇关于玩!框架2.2.0:不可能在Eclipse中调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆