:wave: anyone knows how to use this option `-Dkotl...
# coroutines
t
👋 anyone knows how to use this option
-Dkotlinx.coroutines.debug
in Android Studio to debug coroutine?
a
You can put this in the init block of your application class:
Copy code
if (BuildConfig.DEBUG) {
    System.setProperty(
        kotlinx.coroutines.DEBUG_PROPERTY_NAME, kotlinx.coroutines.DEBUG_PROPERTY_VALUE_ON
    )
}
❤️ 1
t
Thanks @Albert Chang!
👍 1
u
Not supported on Android though