[devkit debugger] IDEA-363102 Do not adjust top frame

* as it is always correct

GitOrigin-RevId: 901592feaae984c5aeecfb3c6ca0e849cd2dc225
This commit is contained in:
Maksim Zuev
2024-11-12 17:00:23 +01:00
committed by intellij-monorepo-bot
parent 04b3b013dc
commit 6daa53e505

View File

@@ -134,6 +134,8 @@ private fun getReadWriteAccessStateBasedOnCurrentFrame(evaluationContext: Evalua
val currentXFrame = (evaluationContext.suspendContext as SuspendContextImpl).debugProcess.session.xDebugSession?.currentStackFrame
if (currentXFrame !is JavaStackFrame) return null
val currentFrame = currentXFrame.stackFrameProxy
// No need to adjust as the first frame is always correct
if (currentFrame.frameIndex == 0) return null
val thread = evaluationContext.suspendContext.thread ?: return null
val frames = List(thread.frameCount()) { thread.frame(it) }