go-delve/delve · error
could not find thread %d
Error message
could not find thread %d
What it means
Error "could not find thread %d" thrown in go-delve/delve.
Source
Thrown at service/debugger/debugger.go:2210
func (d *Debugger) Recorded() (recorded bool, tracedir string) {
d.targetMutex.Lock()
defer d.targetMutex.Unlock()
return d.target.Recorded()
}
// FindThreadReturnValues returns the return values of the function that
// the thread of the given 'id' just stepped out of.
func (d *Debugger) FindThreadReturnValues(id int, cfg proc.LoadConfig) ([]*proc.Variable, error) {
d.targetMutex.Lock()
defer d.targetMutex.Unlock()
if _, err := d.target.Valid(); err != nil {
return nil, err
}
thread, found := d.target.Selected.FindThread(id)
if !found {
return nil, fmt.Errorf("could not find thread %d", id)
}
return thread.Common().ReturnValues(cfg), nil
}
// Checkpoint will set a checkpoint specified by the locspec.
func (d *Debugger) Checkpoint(where string) (int, error) {
d.targetMutex.Lock()
defer d.targetMutex.Unlock()
return d.target.Checkpoint(where)
}
// Checkpoints will return a list of checkpoints.
func (d *Debugger) Checkpoints() ([]proc.Checkpoint, error) {
d.targetMutex.Lock()
defer d.targetMutex.Unlock()
return d.target.Checkpoints()
}View on GitHub (pinned to a23773e6c3)
When it happens
Trigger: Thrown at service/debugger/debugger.go:2210 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/827799fd8a3066c5.
Report an issue: GitHub.