{"record":{"id":"06d708cb16237d88","repo":"go-delve/delve","slug":"unknown-config-parameter","errorCode":null,"errorMessage":"unknown config parameter","messagePattern":"unknown config parameter","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/terminal/command.go","lineNumber":768,"sourceCode":"\t\t}\n\t}\n}\n\nvar errNoCmd = errors.New(\"command not available\")\n\nfunc noCmdAvailable(t *Term, ctx callContext, args string) error {\n\treturn errNoCmd\n}\n\nfunc nullCommand(t *Term, ctx callContext, args string) error {\n\treturn nil\n}\n\nfunc (c *Commands) help(t *Term, ctx callContext, args string) error {\n\tif args != \"\" {\n\t\tif p1, p2, ok := strings.Cut(args, \" \"); ok && p1 == \"config\" {\n\t\t\tif !configureValidParameter(t, p2) {\n\t\t\t\treturn errors.New(\"unknown config parameter\")\n\t\t\t}\n\t\t\tif doc := config.Documentation[p2]; doc != \"\" {\n\t\t\t\tfmt.Fprintln(t.stdout, doc)\n\t\t\t\treturn nil\n\t\t\t}\n\t\t\treturn errors.New(\"not documented\")\n\t\t}\n\n\t\tfor _, cmd := range c.cmds {\n\t\t\tif slices.Contains(cmd.aliases, args) {\n\t\t\t\tfmt.Fprintln(t.stdout, cmd.helpMsg)\n\t\t\t\treturn nil\n\t\t\t}\n\t\t}\n\t\treturn errNoCmd\n\t}\n\n\tfmt.Fprintln(t.stdout, \"The following commands are available:\")","sourceCodeStart":750,"sourceCodeEnd":786,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/pkg/terminal/command.go#L750-L786","documentation":"The 'help config <param>' path validates the requested configuration parameter with configureValidParameter; if the parameter name is not a known Delve config key, this error is returned. It means you asked for documentation of a config setting that does not exist.","triggerScenarios":"Running 'help config <name>' where <name> is not a valid configure parameter (e.g. 'help config maxarravalues' misspelled).","commonSituations":"Misspelled config parameter names; copying config keys from old documentation or other debugger docs.","solutions":["Run 'help config' (no argument) or 'config' to see valid parameters","Check spelling of the parameter (e.g. max-array-values, substitute-path)","Consult Documentation/cli/locspec or 'config -list' style output for current keys"],"exampleFix":"// before\n(dlv) help config maxarray\n// after\n(dlv) help config max-array-values","handlingStrategy":"validation","validationCode":"// Validate the config parameter before asking for help\nknown := []string{\"max-array-values\",\"max-string-len\",\"follow-exec\",\"substitute-path\",\"show-hidden-variables\"}\nif !slices.Contains(known, param) {\n    return fmt.Errorf(\"unknown config parameter %q\", param)\n}","typeGuard":null,"tryCatchPattern":"err := cmds.Help(term, ctx, \"config \"+param)\nif err != nil && strings.Contains(err.Error(), \"unknown config parameter\") {\n    fmt.Fprintf(os.Stderr, \"%q is not a config key; run 'help config'\\n\", param)\n}","preventionTips":["Run 'help config' with no argument to list valid parameters","Copy parameter names from official docs, not memory","Use kebab-case exact names (e.g. max-array-values, not maxarray)"],"tags":["terminal","config","delve"],"backgroundTag":"unknown-config-parameter","analyzedSha":"a23773e6c31361e43246bc43a424ee009679b174","analyzedAt":"2026-08-31T15:12:45.221Z","schemaVersion":2},"datasetVersion":"2026-08-31T19:17:28.585Z"}