{"record":{"id":"da98c2be818bf093","repo":"JetBrains/intellij-community","slug":"variable-doesn-t-belong-to-this-frame-localvaria","errorCode":null,"errorMessage":"Variable doesn't belong to this frame: {localVariable}","messagePattern":"Variable doesn't belong to this frame: (.+?)","errorType":"exception","errorClass":"EvaluateException","httpStatus":null,"severity":"error","filePath":"java/debugger/impl/src/com/intellij/debugger/jdi/StackFrameProxyImpl.java","lineNumber":400,"sourceCode":"        }\n        catch (InvalidStackFrameException e) {\n          error = e;\n          clearCaches();\n        }\n      }\n      catch (InvalidStackFrameException | AbsentInformationException e) {\n        throw EvaluateExceptionUtil.createEvaluateException(e);\n      }\n    }\n    throw new EvaluateException(error.getMessage(), error);\n  }\n\n  @Override\n  public Value getVariableValue(@NotNull LocalVariableProxy localVariable) throws EvaluateException {\n    if (localVariable instanceof LocalVariableProxyImpl) {\n      return getValue((LocalVariableProxyImpl)localVariable);\n    }\n    throw new EvaluateException(\"Variable doesn't belong to this frame: \" + localVariable);\n  }\n\n  public Value getValue(LocalVariableProxyImpl localVariable) throws EvaluateException {\n    DebuggerManagerThreadImpl.assertIsManagerThread();\n    Exception error = null;\n    for (int attempt = 0; attempt < 2; attempt++) {\n      try {\n        LocalVariable variable = localVariable.getVariable();\n        Map<LocalVariable, Value> values;\n        try {\n          values = getAllValues();\n        }\n        catch (InconsistentDebugInfoException ignored) {\n          // possibly failed due to one of the variables, try getting one by one\n          return getSingleValue(variable);\n        }\n\n        if (values.containsKey(variable)) {","sourceCodeStart":382,"sourceCodeEnd":418,"githubUrl":"https://github.com/JetBrains/intellij-community/blob/be881553f2a76ac8b4ea53950d93f0de78295c19/java/debugger/impl/src/com/intellij/debugger/jdi/StackFrameProxyImpl.java#L382-L418","documentation":"Error \"Variable doesn't belong to this frame: {localVariable}\" thrown in JetBrains/intellij-community.","triggerScenarios":"The debugger maps a local variable to a stack frame whose debug information does not contain it.","commonSituations":"Stale or mismatched class files (e.g. after hot swap or partial recompilation) desynchronizing the LocalVariableTable.","solutions":["Recompile the affected class so the local variable table matches the code, then restart the debug session.","Avoid hot-swapped or instrumented classes whose debug info no longer matches the frame."],"exampleFix":"Build | Rebuild Project, restart the debug session, and evaluate the variable again.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"be881553f2a76ac8b4ea53950d93f0de78295c19","analyzedAt":"2026-08-14T14:13:06.425Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}