mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
[devkit debugger] IDEA-363102 Do not adjust top frame
* as it is always correct GitOrigin-RevId: 901592feaae984c5aeecfb3c6ca0e849cd2dc225
This commit is contained in:
committed by
intellij-monorepo-bot
parent
04b3b013dc
commit
6daa53e505
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user