How to recover the coroutine's true call trace?

后端 未结 3 2072
醉梦人生
醉梦人生 2021-02-06 06:20

This is a painfully familiar problem to anyone working with async APIs: when your call encounters a failure, the async library\'s private thread detects it, creates an exception

3条回答
  •  孤街浪徒
    2021-02-06 06:27

    Just found a github issue related to this:

    Stacktrace recovery ( https://github.com/Kotlin/kotlinx.coroutines/pull/792 ) and the related doc ( https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/debugging.md )

    Without the caller site stacktrace, coroutine debugging is indeed painful. Hope that the "debug mode" can help. Will try and see.

提交回复
热议问题