{"record":{"id":"13f8a0e60b2bbea7","repo":"go-delve/delve","slug":"error-creating-breakpoint-at-function-return-s","errorCode":null,"errorMessage":"error creating breakpoint at function return %s: %w","messagePattern":"error creating breakpoint at function return (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"service/debugger/debugger.go","lineNumber":1612,"sourceCode":"\t\treturn fmt.Errorf(\"error creating breakpoint at function %s: %w\", fname, err)\n\t}\n\n\t// Create tracepoints for function return locations\n\traddrs, _ := d.functionReturnLocationsInternal(fname)\n\tfor i := range raddrs {\n\t\tretLbp := &proc.LogicalBreakpoint{\n\t\t\tSet: proc.SetBreakpoint{\n\t\t\t\tPidAddrs: []proc.PidAddr{{Pid: d.target.Selected.Pid(), Addr: raddrs[i]}},\n\t\t\t},\n\t\t\tTraceReturn:      true,\n\t\t\tRootFuncName:     rootstr,\n\t\t\tStacktrace:       20,\n\t\t\tTraceFollowCalls: followCalls,\n\t\t}\n\n\t\terr := createBrkForTracepoint(retLbp)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error creating breakpoint at function return %s: %w\", fname, err)\n\t\t}\n\t}\n\treturn nil\n}\n\n// Types returns all type information in the binary.\nfunc (d *Debugger) Types(filter string) ([]string, error) {\n\td.targetMutex.Lock()\n\tdefer d.targetMutex.Unlock()\n\n\tregex, err := regexp.Compile(filter)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"invalid filter argument: %s\", err.Error())\n\t}\n\n\tr := []string{}\n\n\tt := proc.ValidTargets{Group: d.target}","sourceCodeStart":1594,"sourceCodeEnd":1630,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/service/debugger/debugger.go#L1594-L1630","documentation":"Error \"error creating breakpoint at function return %s: %w\" thrown in go-delve/delve.","triggerScenarios":"Thrown at service/debugger/debugger.go:1612 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"}