{"record":{"id":"2c81ae0eb8c5cff2","repo":"JetBrains/intellij-community","slug":"param-index-paramid-requested-but-only-argumen","errorCode":null,"errorMessage":"Param index {paramId} requested, but only {argumentValues.size()} available","messagePattern":"Param index (.+?) requested, but only (.+?) available","errorType":"exception","errorClass":"EvaluateException","httpStatus":null,"severity":"error","filePath":"java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/StackCapturingLineBreakpoint.java","lineNumber":239,"sourceCode":"  }\n\n  private static class MyEvaluator {\n    private final String myExpression;\n    private ExpressionEvaluator myEvaluator;\n    private final Map<Location, ExpressionEvaluator> myEvaluatorCache = new WeakHashMap<>();\n\n    MyEvaluator(String expression) {\n      myExpression = expression;\n      int paramId = DecompiledLocalVariable.getParamId(myExpression);\n      boolean paramEvaluator = paramId > -1;\n      if (paramEvaluator) {\n        myEvaluator = new ExpressionEvaluatorImpl(new Evaluator() {\n          @Override\n          public Object evaluate(EvaluationContextImpl context) throws EvaluateException {\n            @SuppressWarnings(\"ConstantConditions\")\n            List<Value> argumentValues = context.getFrameProxy().getArgumentValues();\n            if (paramId >= argumentValues.size()) {\n              throw new EvaluateException(\"Param index \" + paramId + \" requested, but only \" + argumentValues.size() + \" available\");\n            }\n            return argumentValues.get(paramId);\n          }\n        });\n      }\n    }\n\n    @Nullable\n    Value evaluate(final EvaluationContext context) throws EvaluateException {\n      ExpressionEvaluator evaluator = myEvaluator;\n      if (evaluator == null) {\n        @SuppressWarnings(\"ConstantConditions\")\n        Location location = context.getFrameProxy().location();\n        evaluator = location == null ? null : myEvaluatorCache.get(location);\n        if (evaluator == null && !StringUtil.isEmpty(myExpression)) {\n          evaluator = ReadAction.compute(() -> {\n            SourcePosition sourcePosition = ContextUtil.getSourcePosition(context);\n            PsiElement contextElement = ContextUtil.getContextElement(sourcePosition);","sourceCodeStart":221,"sourceCodeEnd":257,"githubUrl":"https://github.com/JetBrains/intellij-community/blob/be881553f2a76ac8b4ea53950d93f0de78295c19/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/StackCapturingLineBreakpoint.java#L221-L257","documentation":"Error \"Param index {paramId} requested, but only {argumentValues.size()} available\" thrown in JetBrains/intellij-community.","triggerScenarios":"A stack-capturing breakpoint asks for a parameter index beyond the number of captured argument values.","commonSituations":"Stale capture points recorded against an older method signature with more parameters.","solutions":["Request only parameter indices that actually exist for the captured method call.","Recapture the stack after fixing the method signature or the param index used in the capture configuration."],"exampleFix":"For a method with 2 parameters use param indices 0 and 1 only in the captured data view.","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-15T22:17:37.221Z"}