I'm getting a coroutine exception while running my Android app in debug mode through Android Studio.
kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled
From the coroutines debugging documentation, I gather that I might get fuller stack trace information by enabling debug mode of coroutines.
It can be enabled either by setting system property DEBUG_PROPERTY_NAME or by running Java with enabled assertions (-ea flag).
This is where I'm stuck. What is the idiomatic way of achieving this in Android Studio? My project is configured using Gradle, and I am running on Windows. Ideally, there is a way to configure this through Gradle configuration so that coroutines debug mode is enabled for anyone pulling in this project through source control.