{"record":{"id":"2097f6fb1cc4835e","repo":"go-delve/delve","slug":"could-not-find-breakpoint-named-q","errorCode":null,"errorMessage":"could not find breakpoint named %q","messagePattern":"could not find breakpoint named %q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/proc/breakpoints.go","lineNumber":1042,"sourceCode":"}\n\n// HasHWBreakpoints returns true if there are hardware breakpoints.\nfunc (bpmap *BreakpointMap) HasHWBreakpoints() bool {\n\tfor _, bp := range bpmap.M {\n\t\tif bp.WatchType != 0 {\n\t\t\treturn true\n\t\t}\n\t}\n\treturn false\n}\n\nfunc totalHitCountByName(lbpmap map[int]*LogicalBreakpoint, s string) (uint64, error) {\n\tfor _, bp := range lbpmap {\n\t\tif bp.Name == s {\n\t\t\treturn bp.TotalHitCount, nil\n\t\t}\n\t}\n\treturn 0, fmt.Errorf(\"could not find breakpoint named %q\", s)\n}\n\nfunc totalHitCountByID(lbpmap map[int]*LogicalBreakpoint, id int) (uint64, error) {\n\tfor _, bp := range lbpmap {\n\t\tif bp.LogicalID == int(id) {\n\t\t\treturn bp.TotalHitCount, nil\n\t\t}\n\t}\n\treturn 0, fmt.Errorf(\"could not find breakpoint with ID = %d\", id)\n}\n\n// BreakpointState describes the state of a breakpoint in a thread.\ntype BreakpointState struct {\n\t*Breakpoint\n\t// Active is true if the condition of any breaklet is met.\n\tActive bool\n\t// Stepping is true if one of the active breaklets is a stepping\n\t// breakpoint.","sourceCodeStart":1024,"sourceCodeEnd":1060,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/pkg/proc/breakpoints.go#L1024-L1060","documentation":"Error \"could not find breakpoint named %q\" thrown in go-delve/delve.","triggerScenarios":"Thrown at pkg/proc/breakpoints.go:1042 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-31T19:17:28.585Z"}