Can't set breakpoint in lambda that is a field
已回答
It seems that if you define a lambda in a field, you cannot put a breakpoint in it, as Intellij only recognises it as a field watch, eg:
final Predicate<Object> isNull = x -> x == null;
请先登录再写评论。
Please submit a bug at https://youtrack.jetbrains.com/issues/IDEA with a sample project to reproduce.
https://youtrack.jetbrains.com/issue/IDEA-159144