mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
[coroutine] Exception fixed for SUSPEND coroutines.
GitOrigin-RevId: 1288735a0a5593b9969d625a83c46b1212c9b018
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7d4818aaf9
commit
ebe1c7e426
@@ -74,7 +74,7 @@ class CoroutineBuilder(val suspendContext: XSuspendContext) {
|
||||
} else if ((coroutine.state == CoroutineInfoData.State.SUSPENDED || coroutine.activeThread == null) && coroutine.lastObservedFrameFieldRef is ObjectReference) {
|
||||
// to get frames from CoroutineInfo anyway
|
||||
// the thread is paused on breakpoint - it has at least one frame
|
||||
val suspendedStackTrace = coroutine.stackTrace.take(creationFrameSeparatorIndex + 1)
|
||||
val suspendedStackTrace = coroutine.stackTrace.take(creationFrameSeparatorIndex)
|
||||
for (suspendedFrame in suspendedStackTrace) {
|
||||
val suspendedXStackFrame = stackFrame(positionManager, firstSuspendedStackFrameProxyImpl, suspendedFrame)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user