{"record":{"id":"83ce84b3dd5bffa7","repo":"go-delve/delve","slug":"could-not-clear-breakpoint-s","errorCode":null,"errorMessage":"could not clear breakpoint %s","messagePattern":"could not clear breakpoint (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/proc/native/threads.go","lineNumber":146,"sourceCode":"\tt.CurrentBreakpoint.Breakpoint = bp\n\treturn nil\n}\n\n// Breakpoint returns the current breakpoint that is active\n// on this thread.\nfunc (t *nativeThread) Breakpoint() *proc.BreakpointState {\n\treturn &t.CurrentBreakpoint\n}\n\n// ThreadID returns the ID of this thread.\nfunc (t *nativeThread) ThreadID() int {\n\treturn t.ID\n}\n\n// clearSoftwareBreakpoint clears the specified breakpoint.\nfunc (t *nativeThread) clearSoftwareBreakpoint(bp *proc.Breakpoint) error {\n\tif _, err := t.WriteMemory(bp.Addr, bp.OriginalData); err != nil {\n\t\treturn fmt.Errorf(\"could not clear breakpoint %s\", err)\n\t}\n\treturn nil\n}\n\n// Registers obtains register values from the debugged process.\nfunc (t *nativeThread) Registers() (proc.Registers, error) {\n\treturn registers(t)\n}\n\n// RestoreRegisters will set the value of the CPU registers to those\n// passed in via 'savedRegs'.\nfunc (t *nativeThread) RestoreRegisters(savedRegs proc.Registers) error {\n\treturn t.restoreRegisters(savedRegs)\n}\n\n// PC returns the current program counter value for this thread.\nfunc (t *nativeThread) PC() (uint64, error) {\n\tregs, err := t.Registers()","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/pkg/proc/native/threads.go#L128-L164","documentation":"Error \"could not clear breakpoint %s\" thrown in go-delve/delve.","triggerScenarios":"Thrown at pkg/proc/native/threads.go:146 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"}