Stop on exception breakpoints inside lambda functions

Answered

Hi,

I setup my breakpoints such as to stop on some unchecked exception (ClassCastException). It occurs inside lambda code but ide doesn't stop.

 

I assume jetbrains didn't implement this feature, perhaps not very useful,I guess?

 

 

--john

0
3 comments

Hi, this should work. Please provide a sample test to reproduce.

0
Avatar
Permanently deleted user

Can't get to reproduce again. I have tried several simple test such as this last one:
Stream.of("a", "b", "c").filter(e -> e.startsWith("a")).forEach(a -> a = (String)(Object)42);
the CCE breakpoint stops as it should. I guess, just another of idea's occasional quirks. Sorry for the bother, please consider this closed.

0

No problem, if you see it again please try to report the case. Thanks!

0

Please sign in to leave a comment.