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

louiscad

01/21/2019, 3:05 PM
Is kotlinx.coroutines debug not supported on Android? I tried to call
DebugProbes.install()
but got this runtime exception: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/management/ManagementFactory;
v

Vsevolod Tolstopyatov [JB]

01/21/2019, 3:14 PM
Android does not support dynamic attach API, so yes, it is not supported.
Debug probes probably can be injected statically by aspectj for android, but I haven’t tried it
l

louiscad

01/21/2019, 3:18 PM
How could I try? I have some bugs in a project (hence the need for debug), and it would help me a lot to find where where a crashing coroutine was launched.
Not sure what probes you’d need to set up or cut points for aspectj but this is leaps and bounds further along then when I used it 6+ years ago
e

elizarov

01/21/2019, 5:38 PM
3 Views