diff --git a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/debugger/KotlinCoroutinesAsyncStackTraceProvider.kt b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/debugger/KotlinCoroutinesAsyncStackTraceProvider.kt index e333a82458e..cb924c4a0a0 100644 --- a/idea/idea-jvm/src/org/jetbrains/kotlin/idea/debugger/KotlinCoroutinesAsyncStackTraceProvider.kt +++ b/idea/idea-jvm/src/org/jetbrains/kotlin/idea/debugger/KotlinCoroutinesAsyncStackTraceProvider.kt @@ -54,7 +54,12 @@ class KotlinCoroutinesAsyncStackTraceProvider : KotlinCoroutinesAsyncStackTraceP val evaluationContext = EvaluationContextImpl(suspendContext, frameProxy) val context = ExecutionContext(evaluationContext, frameProxy) - val debugMetadataKtType = context.findClass(DEBUG_METADATA_KT) as? ClassType ?: return null + val debugMetadataKtType = try { + context.findClass(DEBUG_METADATA_KT) as? ClassType + } catch (e: Throwable) { + // DebugMetadataKt not found, probably old kotlin-stdlib version + return null + } ?: return null val asyncContext = AsyncStackTraceContext(context, method, debugMetadataKtType) return asyncContext.getAsyncStackTraceForSuspendLambda() ?: asyncContext.getAsyncStackTraceForSuspendFunction()