I have some coroutine code that is getting cancell...
# coroutines
f
I have some coroutine code that is getting cancelled with a
JobCancellationException
. How can I pinpoint the exact line of code that actually caused the coroutine to cancel? I've tried setting an exception breakpoint for
JobCancellationException
, but it doesn't get triggered for some reason.
m
paste the code
u
You can try and set a break point in the constructor of the exception
Or in Job.cancel()
f
I can't paste the code, we're talking about many files, and the cancellation occurs in library code even
@uli I'll try that, thanks
g
Have you tried to enable coroutines debug mode?
f
No, I will try that as well