How do I get usable stack traces for exceptions in...
# coroutines
m
How do I get usable stack traces for exceptions in coroutines? I'm using a crash reporting service, but all the exceptions I'm getting lose all context, since they only have the function the exception happened in, and that's it, since the next element of the stack trace is
BaseContinuationImpl.resumeWith
and the rest of coroutines machinery, not the "actual" calling method.
l
Do you have parts of your code that use
offer
with catching the exceptions it might throw?
m
I do, but the problem is not exclusive to them.
u
I used to have somewhat similar problem in rx, and I just trimmed those lines from stacktrace and it worked decent