Scala Eclipse IDE 突然忽略断点
我已经愉快地使用 Scala 2.8RC1 和 2.8 RC1 的 Scala Eclipse 插件几天了。然而,昨晚在我的环境中添加了几个 jar 文件(apache http 客户端 jar)后,调试器在 scala 代码中的断点处停止了。
Java 代码在断点处正常停止。我尝试创建一个新的最小 scala 应用程序断点不会停止。我尝试从我一直使用的 openjdk-1.6.18 切换到 sun-jre-1.6.0.20 。我已经切换到 scala 2.8 nightly 以及用于 scala nightly 构建的 eclipse 插件。运气不好。
我非常感谢修复的想法。相当令人沮丧,因为 2.8 的最初体验确实很棒。
I've been using Scala 2.8RC1 and Scala Eclipse plugin for 2.8 RC1 happily for a few days. However, last night after adding a couple jar files to my environment (apache http client jars) the debugger just stopped stopping at breakpoints in scala code.
Java code stops fine at breakpoints. I tried creating a new mimimal scala app breakpoints don't stop. I've tried switching to sun-jre-1.6.0.20 from the openjdk-1.6.18 I had been using. I've switched to the scala 2.8 nightly and also eclipse plugin for scala nightly builds. No luck.
I would greatly appreciate ideas for fixes. Rather frustrating as the initial experience with 2.8 was really great.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
https://www.assembla.com/spaces/scala-ide/tickets/2731-breakpoints-against-objects-in-default-package-are-not-honoured
说scala eclipse插件不会停止如果您的类位于默认包(无包)中,则在断点处
添加包并将我的类移至其中 - 使调试器再次开始工作。
https://www.assembla.com/spaces/scala-ide/tickets/2731-breakpoints-against-objects-in-default-package-are-not-honoured
Says that scala eclipse plugin doesn't stop at breakpoints if you're class is in the default package (no package)
Adding a package and moving my class to it - make the debugger start working again.
您可能在 Eclipse 的 Scala 工具中发现了一个错误。解决问题的最佳位置是此处的 scala-ide-user 列表,
http://groups.google.com/group/scala-ide-user" rel="nofollow noreferrer">http:// /groups.google.com/group/scala-ide-user
如果您确定已发现错误,可以在此处找到开票说明,
http://scala-ide.assembla.com/wiki/show/scala-ide/Bug_Reporting
It's possible that you've discovered a bug in the Scala tooling for Eclipse. The best place to take the issue is the scala-ide-user list here,
http://groups.google.com/group/scala-ide-user
If you're already sure that you've found a bug you can find instructions for opening a ticket here,
http://scala-ide.assembla.com/wiki/show/scala-ide/Bug_Reporting
我刚刚遇到这个问题。代码不在默认包中。我收到有关缺少行号的警告,但显然该错误已得到修复,我可以忽略该警告,根据 https://scala-ide-portfolio.assembla。 com/spaces/scala-ide/tickets/1000155-its-impossible-to-add-line-numbers-debug-info-to-compiled-project#/activity/ticket:
它似乎确实停在断点处不过在主文件中。
I've just encountered this problem. Code is not in default package. I'm getting a warning about missing line numbers, but apparently that bug has been fixed and I can ignore the warning, per https://scala-ide-portfolio.assembla.com/spaces/scala-ide/tickets/1000155-its-impossible-to-add-line-numbers-debug-info-to-compiled-project#/activity/ticket:
It did seem to stop at breakpoints in the main file, though.