Lines Matching refs:coroutines
1 # Module kotlinx-coroutines-debug
3 Debugging facilities for `kotlinx.coroutines` on JVM.
7 This module provides a debug JVM agent that allows to track and trace existing coroutines.
9 Call to [DebugProbes.install] installs debug agent via ByteBuddy and starts spying on coroutines wh…
11 …DebugProbes.dumpCoroutines] to print all active (suspended or running) coroutines, including their…
13 Additionally, it is possible to process the list of such coroutines via [DebugProbes.dumpCoroutines…
14 of coroutines hierarchy referenced by a [Job] or [CoroutineScope] instances using [DebugProbes.pri…
23 Add `kotlinx-coroutines-debug` to your project test dependencies:
26 testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-debug:1.4.0'
33 and to dump coroutines on timeout to simplify tests debugging.
58 After 1 second, test will fail with `TestTimeoutException` and all coroutines (`runBlocking` and `l…
64 You can run your application with an additional argument: `-javaagent:kotlinx-coroutines-debug-1.4.…
65 …ou can use `kill -5 $pid` command in order to force your application to print all alive coroutines.
66 When used as Java agent, `"kotlinx.coroutines.debug.enable.creation.stack.trace"` system property c…
109 // Dump running coroutines
122 at kotlinx.coroutines.DeferredCoroutine.await$suspendImpl(Builders.common.kt:99)
127 …at kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt.createCoroutineUnintercepted(Intrins…
128 at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:25)
129 at kotlinx.coroutines.BuildersKt.async$default(Unknown Source)
131 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)
132 at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233)
133 at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
137 ... More coroutines here ...
140 "coroutine#2":DeferredCoroutine{Active}, continuation is SUSPENDED at line kotlinx.coroutines.Defer…
157 Unfortunately, Android runtime does not support Instrument API necessary for `kotlinx-coroutines-de…
164 …at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent$ProcessProvider$ForCurrentVm$F…
165 …at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent$ProcessProvider$ForCurrentVm.r…
166 …at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:37…
167 …at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:34…
168 …at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:32…
169 at kotlinx.coroutines.debug.internal.DebugProbesImpl.install(DebugProbesImpl.kt:39)
170 at kotlinx.coroutines.debug.DebugProbes.install(DebugProbes.kt:49)
175 Building an Android project that depends on `kotlinx-coroutines-debug` (usually introduced by being…
176 dependency of `kotlinx-coroutines-test`) may fail with `DuplicateRelativeFileException` for `META-I…
181 * `kotlinx-coroutines-debug` transitively depends on JNA and JNA-platform, both of which include li…
184 * Additionally, `kotlinx-coroutines-debug` embeds `byte-buddy-agent` and `byte-buddy`, along with t…
185 …t separately depends on `byte-buddy`, merging the resources of `kotlinx-coroutines-debug` with ones
204 Alternatively, avoid depending on `kotlinx-coroutines-debug`. In particular, if the only reason why…
205 dependency of your project is that `kotlinx-coroutines-test` in turn depends on it, you may change …
206 `kotlinx.coroutines.test` to exclude `kotlinx-coroutines-debug`. For example, you could replace
208 androidTestImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version")
212 androidTestImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version") {
213 exclude group: "org.jetbrains.kotlinx", module: "kotlinx-coroutines-debug"
265 <!--- MODULE kotlinx-coroutines-core -->
266 <!--- INDEX kotlinx.coroutines -->
267 [Job]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-job/…
268 …CoroutineScope]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.corou…
269 <!--- MODULE kotlinx-coroutines-debug -->
270 <!--- INDEX kotlinx.coroutines.debug -->
271 [DebugProbes]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-debug/kotlinx.corouti…
272 …robes.install]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-debug/kotlinx.corou…
273 …tps://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-debug/kotlinx.coroutines.debug/-debug…
274 …tps://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-debug/kotlinx.coroutines.debug/-debug…
275 …obes.printJob]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-debug/kotlinx.corou…
276 …es.printScope]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-debug/kotlinx.corou…
277 …onStackTraces]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-debug/kotlinx.corou…
278 <!--- INDEX kotlinx.coroutines.debug.junit4 -->
279 …t]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-debug/kotlinx.coroutines.debug.…