useContextElementInDebugMode

suspend fun <Element : CoroutineContext.Element> useContextElementInDebugMode(key: CoroutineContext.Key<Element>, action: (Element) -> Unit)

Performs action on the current element of the CoroutineContext with the given key if Intellij JVM debugger is attached.