Hello everybody, does someone know if there is a w...
# android
n
Hello everybody, does someone know if there is a way to enable the coroutine debug mode on android/android studio ? (https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/debugging.md)
g
n
unfortunatelly it’s not possible to use the debug probe on android (last paragraph)
but there is 2 other features (Debug mode and stacktrace recovery) that might work ? but I’m not sure how to enable it
m
Debug mode can be enabled like this
Copy code
class App : Application() {
init {
System.setProperty(
DEBUG_PROPERTY_NAME,
DEBUG_PROPERTY_VALUE_ON
)
}
}
n
I just tried but I’m not sure it change anything on Android
m
Not sure what is your usecase but you can use it like this