Join Slack
Powered by
Is there some way to get the full stacktrace in th...
# coroutines
j
Jan
05/08/2025, 4:58 PM
Is there some way to get the full stacktrace in the exception (main() and mainMethod() are missing in the stacktrace, I assume because of the suspending delay(...) use)? Snippet:
https://pl.kotl.in/rVbVEv0nt
j
Joffrey
05/08/2025, 4:59 PM
You should have a look at the stacktrace recovery feature of `kotlinx-coroutines-debug`:
https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/topics/debugging.md#stacktrace-recovery
j
Jan
05/08/2025, 5:13 PM
Thanks!
j
Joffrey
05/08/2025, 5:14 PM
There is also the 3rd party
https://github.com/Anamorphosee/stacktrace-decoroutinator
🆒 1
Open in Slack
Previous
Next