在IntelliJ IDEA中调试时,不能使用lambdas作为断点条件

时间:2014-12-27 22:56:06

标签: java debugging intellij-idea

我在代码中使用lambdas,但在调试代码时不能将它们用作断点条件。它弹出一条消息:

Problem processing VM event:
Breakpoint: 'Line 112 in MyClass.method() (my.package)'
Error: Failed to evaluate breakpoint condition
'Iterables.toCollection(this).stream().anyMatch(n->n.isOk())'
Reason: Lambdas evaluation is not supported
Would you like to stop at the breakpoint?

为什么这样做以及如何在断点中使用lambdas?

1 个答案:

答案 0 :(得分:1)

Idea 15得到了lambda调试的支持。请参阅https://www.jetbrains.com/idea/whatsnew/