问题描述
我在 Scala 2.10 和 IntelliJ IDEA 12.x 中使用最后一个稳定的 SBT 和最后一个 Scala 插件.并且有非常简单的测试 Scala 项目.
I use last stable SBT with Scala 2.10 and last Scala plugin in IntelliJ IDEA 12.x. And have very simple test Scala project.
我有 specs2 测试,我想从哪里开始调试.有几个断点,我期待越过行,(从一个断点到另一个断点 - 在我的测试和我的代码中),但相反:调试器在库类中的某个地方停止,向我展示了一些奇怪的来源.
I have specs2 test where I want to start my debug from. Having several breakpoints, I'm expecting going over lines, (from one break point to another - in my test and in My code), but instead: the debbuger going somewhere inside library classes, stops there, showing me some strange sources.
这一直是可重现的,我必须在下一步箭头按钮(在调试面板上)上单击 2、3,有时甚至 5 次才能到达下一个断点(在测试或代码中).
That's reproducible all the time, and I have to click 2, 3, sometimes 5 times on the next-arrow-button (on debug panel) to reach next break point (in the test or in the code).
我使用 SBT 'test-compile' 操作运行我的测试,就像 IntelliJ 弹出窗口所建议的那样.
I run my test with SBT 'test-compile' action, like IntelliJ pop-up suggests.
Aldo 我找到了 this Scala 的调试设置(不要进入特定的 Scala 类").但是我选中了这个复选框.
Aldo I found this debug settings for Scala ("Do not step into specific Scala classes"). But I have this check-box selected.
我在 IntelliJ IDEA 网站上发布了一个问题.
I've post an issue in IntelliJ IDEA site.
推荐答案
IntelliJ 15 现在支持在 lambdas 中添加断点.请参阅这篇博文了解详情.
IntelliJ 15 now has support for adding breakpoints inside lambdas. See this blog post for details.
这篇关于IntelliJ IDEA 调试跳进去而不是过去的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!