kotlin-debug-adapter
kotlin-debug-adapter copied to clipboard
how can i debug coroutine?
I add a breakpoint in any where, debug cannot execute coroutine code and stuck at somewhere. without breakpoint ,it debug normal.
Good question. Debugging coroutines might not be as straightforward as synchronous code, since they have no "native" JVM representation. I will mark this as an enhancement, since coroutines are not officially supported by the debug adapter yet.
See also:
- https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/debugging.md