{"record":{"id":"f13bda6ab312045c","repo":"go-delve/delve","slug":"error-creating-breakpoint-at-function-s-w","errorCode":null,"errorMessage":"error creating breakpoint at function %s: %w","messagePattern":"error creating breakpoint at function (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"service/debugger/debugger.go","lineNumber":1594,"sourceCode":"\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t}\n\n\t// Create tracepoint for function entry\n\tlbp := &proc.LogicalBreakpoint{\n\t\tSet: proc.SetBreakpoint{\n\t\t\tFunctionName: fname,\n\t\t},\n\t\tTracepoint:       true,\n\t\tRootFuncName:     rootstr,\n\t\tStacktrace:       20,\n\t\tTraceFollowCalls: followCalls,\n\t}\n\n\terr := createBrkForTracepoint(lbp)\n\tif err != nil {\n\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)","sourceCodeStart":1576,"sourceCodeEnd":1612,"githubUrl":"https://github.com/go-delve/delve/blob/a23773e6c31361e43246bc43a424ee009679b174/service/debugger/debugger.go#L1576-L1612","documentation":"Error \"error creating breakpoint at function %s: %w\" thrown in go-delve/delve.","triggerScenarios":"Thrown at service/debugger/debugger.go:1594 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"}