https://kotlinlang.org logo
#coroutines
Title
# coroutines
a

antrax

02/25/2022, 4:52 PM
Do you guys enable stacktrace recovery (https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/topics/debugging.md#stacktrace-recovery) in your production builds? I wonder why it's disabled by default. It's quite hard to debug crashes in production having only the last part of the stacktrace reported.
👀 4
👌 1
e

ephemient

02/25/2022, 7:43 PM
I think https://github.com/Kotlin/kotlinx.coroutines/issues/3153 may able to provide informative stack traces without the overhead of debug mode
and even with the current stacktrace recovery implementation, https://github.com/Kotlin/kotlinx.coroutines/issues/2607 is lacking
a

antrax

02/25/2022, 9:43 PM
Thanks for the links. What is the overhead of debug mode besides loosing referential transparency of the exception?
13 Views