Package io.ktor.util.debug
Functions
Link copied to clipboard
suspend fun <T> addToContextInDebugMode(pluginName: String, block: suspend () -> T): T
Content copied to clipboard
Adds pluginName to the current CoroutineContext if Intellij JVM debugger is attached.
Link copied to clipboard
Initialize plugins debug mode for block
Link copied to clipboard
suspend fun <Element : CoroutineContext.Element> useContextElementInDebugMode(key: CoroutineContext.Key<Element>, action: (Element) -> Unit)
Content copied to clipboard
Performs action on the current element of the CoroutineContext with the given key if Intellij JVM debugger is attached.