https://kotlinlang.org logo
#android
Title
# android
n

nitrog42

11/12/2019, 9:41 AM
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

Giorgos Neokleous

11/12/2019, 9:43 AM
n

nitrog42

11/12/2019, 9:43 AM
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

Mark McCormick

11/12/2019, 10:06 AM
Debug mode can be enabled like this
Copy code
class App : Application() {
init {
System.setProperty(
DEBUG_PROPERTY_NAME,
DEBUG_PROPERTY_VALUE_ON
)
}
}
n

nitrog42

11/12/2019, 12:03 PM
I just tried but I’m not sure it change anything on Android
m

Mark McCormick

11/12/2019, 12:20 PM
Not sure what is your usecase but you can use it like this