Package io.ktor.util.debug

Functions

Link copied to clipboard
suspend fun <T> addToContextInDebugMode(pluginName: String, block: suspend () -> T): T

Adds pluginName to the current CoroutineContext if Intellij JVM debugger is attached.

Link copied to clipboard
suspend fun <T> initContextInDebugMode(block: suspend () -> T): T

Initialize plugins debug mode for block

Link copied to clipboard
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.