One serious pain point I’m having with Kotlin right now is that I can’t step into lambdas without creating breakpoints all the time. This is fine in simple code but in more complex situations it becomes real tedious.
Stepping over doesn’t work, stepping into doesn’t work, smart stepping into doesn’t work. Only creating a breakpoint works which is frustrating.
Please see my example video (1 min long) to see that above situations doesn’t work like I would like:
How am I supposed to do it? What am I doing wrong?
I added kotlin-test-junit5 dependency and used assertThrows { } and it also worked as expected. I had to perform “step into” 3-5 times to get to the lambda, but the code I traversed really looked like the code inside assertThrows().
It looks to me like mockk is messing something and this is why you get such strange results.