{"record":{"id":"e2ab16d875b4dc4a","repo":"go-delve/delve","slug":"unable-to-parse-breakpoint-hit-condition-q-inval","errorCode":null,"errorMessage":"unable to parse breakpoint hit condition: %q\ninvalid operator: %q","messagePattern":"unable to parse breakpoint hit condition: %q\ninvalid operator: %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/proc/target_group.go","lineNumber":521,"sourceCode":"\topStr := match[1]\n\tvar opTok token.Token\n\tswitch opStr {\n\tcase \"==\", \"\":\n\t\topTok = token.EQL\n\tcase \">=\":\n\t\topTok = token.GEQ\n\tcase \"<=\":\n\t\topTok = token.LEQ\n\tcase \">\":\n\t\topTok = token.GTR\n\tcase \"<\":\n\t\topTok = token.LSS\n\tcase \"%\":\n\t\topTok = token.REM\n\tcase \"!=\":\n\t\topTok = token.NEQ\n\tdefault:\n\t\treturn 0, 0, fmt.Errorf(\"unable to parse breakpoint hit condition: %q\\ninvalid operator: %q\", hitCond, opStr)\n\t}\n\n\tnumStr := match[4]\n\tval, parseErr := strconv.Atoi(numStr)\n\tif parseErr != nil {\n\t\treturn 0, 0, fmt.Errorf(\"unable to parse breakpoint hit condition: %q\\ninvalid number: %q\", hitCond, numStr)\n\t}\n\n\treturn opTok, val, nil\n}\n\n// manageUnsatisfiableBreakpoints automatically disables breakpoints with unsatisifiable hit conditions.\nfunc (grp *TargetGroup) manageUnsatisfiableBreakpoints() error {\n\tfor _, lbp := range grp.LogicalBreakpoints {\n\t\tif lbp.enabled {\n\t\t\tif lbp.condSatisfiable && !breakpointConditionSatisfiable(grp.LogicalBreakpoints, lbp) {\n\t\t\t\tlbp.condSatisfiable = false\n\t\t\t\terr := grp.disableBreakpoint(lbp)","sourceCodeStart":503,"sourceCodeEnd":539,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/pkg/proc/target_group.go#L503-L539","documentation":"Error \"unable to parse breakpoint hit condition: %q\ninvalid operator: %q\" thrown in go-delve/delve.","triggerScenarios":"Thrown at pkg/proc/target_group.go:521 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a23773e6c31361e43246bc43a424ee009679b174","analyzedAt":"2026-08-31T15:12:45.221Z","schemaVersion":2},"datasetVersion":"2026-08-31T22:30:34.772Z"}