go-delve/delve · error

could not find breakpoint named %q

Error message

could not find breakpoint named %q

What it means

Error "could not find breakpoint named %q" thrown in go-delve/delve.

Source

Thrown at pkg/proc/breakpoints.go:1042

}

// HasHWBreakpoints returns true if there are hardware breakpoints.
func (bpmap *BreakpointMap) HasHWBreakpoints() bool {
	for _, bp := range bpmap.M {
		if bp.WatchType != 0 {
			return true
		}
	}
	return false
}

func totalHitCountByName(lbpmap map[int]*LogicalBreakpoint, s string) (uint64, error) {
	for _, bp := range lbpmap {
		if bp.Name == s {
			return bp.TotalHitCount, nil
		}
	}
	return 0, fmt.Errorf("could not find breakpoint named %q", s)
}

func totalHitCountByID(lbpmap map[int]*LogicalBreakpoint, id int) (uint64, error) {
	for _, bp := range lbpmap {
		if bp.LogicalID == int(id) {
			return bp.TotalHitCount, nil
		}
	}
	return 0, fmt.Errorf("could not find breakpoint with ID = %d", id)
}

// BreakpointState describes the state of a breakpoint in a thread.
type BreakpointState struct {
	*Breakpoint
	// Active is true if the condition of any breaklet is met.
	Active bool
	// Stepping is true if one of the active breaklets is a stepping
	// breakpoint.

View on GitHub (pinned to a23773e6c3)

When it happens

Trigger: Thrown at pkg/proc/breakpoints.go:1042 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of go-delve/delve@a23773e6c3 (2026-08-31). Data as JSON: /api/errors/2097f6fb1cc4835e. Report an issue: GitHub.