https://kotlinlang.org logo
Title
n

nitrog42

10/19/2020, 9:36 AM
is there any way to find the origin of a JobCancellationException on Android ? There is no stacktrace displayed in logcat 😢 the debug probes still doesn't look available
g

gildor

10/19/2020, 9:50 AM
have you enabled debug mode for coroutines (debug probe is different thing, it’s more like thread dump)?
n

nitrog42

10/19/2020, 11:05 AM
unfortunatelly I'm still unsure how to enable that in Android
ah yes the good old
System.setProperty("kotlinx.coroutines.debug", "on")
in the application class
thanks @gildor!
g

gildor

10/19/2020, 11:14 AM
Also there are constants for property name and value
n

nitrog42

10/19/2020, 11:15 AM
yeah, DEBUG_PROPERTY_NAME
it's only temporary anyway
(twice, I had forgotten since the first time)