Francis Mariano
07/12/2024, 12:59 PMFrancis Mariano
07/12/2024, 12:59 PMFrancis Mariano
07/12/2024, 2:25 PMapplication {
applicationDefaultJvmArgs = listOf("-Dkotlinx.coroutines.debug=on")
}
I am using Android Studio in multplatform project , I unable to enable that flagephemient
07/13/2024, 4:21 AMephemient
07/13/2024, 4:21 AMjvmArgs
currentlyephemient
07/13/2024, 5:14 AMtasks.named<JavaExec>("jvmRun") {
jvmArgs("-Dkotlinx.coroutines.debug=on")
}
although for debugging it may be even more useful to
enableAssertions = true
which kotlinx-coroutines-debug also picks up by default
(assuming it's included in your runtime classpath of course)louiscad
07/13/2024, 7:45 AMCLOVIS
07/15/2024, 12:12 PMowner
argument. Not only will it massively improve error messages, it will actually detect some deadlocks (the ones caused by mutex not being reentrant) and log themFrancis Mariano
07/15/2024, 4:43 PM