kotlin-debug-adapter icon indicating copy to clipboard operation
kotlin-debug-adapter copied to clipboard

how can i debug coroutine?

Open guijiyang opened this issue 4 years ago • 1 comments

I add a breakpoint in any where, debug cannot execute coroutine code and stuck at somewhere. without breakpoint ,it debug normal. 2020-04-21 14-22-34 的屏幕截图 2020-04-21 14-26-41 的屏幕截图

guijiyang avatar Apr 21 '20 06:04 guijiyang

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

fwcd avatar May 27 '20 17:05 fwcd