Putting conditional breakpoints in lambda expressions in IntelliJ

    How can I put a conditional breakpoint in a lambda expression in IntelliJ. For eg. I have a statement stream().map(s -> s * 2).forEach(...). I want to put a conditional breakpoint s == 5 on this statement. IntelliJ doesn't recognize s as valid?

1 comment
Comment actions Permalink

Hi, if you're on IDEA 15 EAP, just toggle a breakpoint on the line containing a lambda. It should ask you where exactly to put a breakpoint. Select lambda. After that it should resolve parameters correctly.


Please sign in to leave a comment.