IntelliJ debugging always stepping into Kotlin coroutine-debugging components

If I set a breakpoint in IntelliJ before a suspend method and then “Step Into”, I end up in some kotlinx.coroutines.debug.AgentPremain$DebugProbesTransformer thing instead of my code. How can I tell IntelliJ to not do that?

2 Likes

Also running into this, and weirdly this is the only post on the internet about it. It makes debugging in Kotlin next to impossible – it is also not the only thing where Kotlin has a worse debugging experience than Java.

1 Like