{"record":{"id":"ed173ef91731ce82","repo":"go-delve/delve","slug":"unable-to-parse-breakpoint-hit-condition-q-hit-c","errorCode":null,"errorMessage":"unable to parse breakpoint hit condition: %q\nhit conditions should be of the form \"number\" or \"OP number\"","messagePattern":"unable to parse breakpoint hit condition: %q\nhit conditions should be of the form \"number\" or \"OP number\"","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/proc/target_group.go","lineNumber":500,"sourceCode":"\n\tif lbp.enabled {\n\t\tswitch {\n\t\tcase lbp.condSatisfiable && !breakpointConditionSatisfiable(grp.LogicalBreakpoints, lbp):\n\t\t\tlbp.condSatisfiable = false\n\t\t\tgrp.disableBreakpoint(lbp)\n\t\tcase !lbp.condSatisfiable && breakpointConditionSatisfiable(grp.LogicalBreakpoints, lbp):\n\t\t\tlbp.condSatisfiable = true\n\t\t\tgrp.enableBreakpoint(lbp)\n\t\t}\n\t}\n\n\treturn nil\n}\n\nfunc parseHitCondition(hitCond string) (token.Token, int, error) {\n\tmatch := hitConditionRegex.FindStringSubmatch(strings.TrimSpace(hitCond))\n\tif match == nil || len(match) != 6 {\n\t\treturn 0, 0, fmt.Errorf(\"unable to parse breakpoint hit condition: %q\\nhit conditions should be of the form \\\"number\\\" or \\\"OP number\\\"\", hitCond)\n\t}\n\n\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 \"!=\":","sourceCodeStart":482,"sourceCodeEnd":518,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/pkg/proc/target_group.go#L482-L518","documentation":"Error \"unable to parse breakpoint hit condition: %q\nhit conditions should be of the form \"number\" or \"OP number\"\" thrown in go-delve/delve.","triggerScenarios":"Thrown at pkg/proc/target_group.go:500 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"}