jvmMain.debug.internal.DebuggerInfo.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlinx-coroutines-core-jvm Show documentation
Show all versions of kotlinx-coroutines-core-jvm Show documentation
Coroutines support libraries for Kotlin
The newest version!
@file:Suppress("UNUSED")
package kotlinx.coroutines.debug.internal
import java.io.Serializable
import kotlin.coroutines.*
import kotlinx.coroutines.*
/*
* This class represents all the data required by IDEA debugger.
* It is serializable in order to speedup JDWP interactions.
* **DO NOT MAKE BINARY-INCOMPATIBLE CHANGES TO THIS CLASS**.
*/
@PublishedApi
internal class DebuggerInfo(source: DebugCoroutineInfoImpl, context: CoroutineContext) : Serializable {
public val coroutineId: Long? = context[CoroutineId]?.id
public val dispatcher: String? = context[ContinuationInterceptor]?.toString()
public val name: String? = context[CoroutineName]?.name
public val state: String = source.state
public val lastObservedThreadState: String? = source.lastObservedThread?.state?.toString()
public val lastObservedThreadName = source.lastObservedThread?.name
public val lastObservedStackTrace: List = source.lastObservedStackTrace()
public val sequenceNumber: Long = source.sequenceNumber
}