我在代码中使用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?