Skip to content

Commit 2ac3573

Browse files
authored
dap: Exclude internal breakpoints from response (#4027)
1 parent 3c4e58b commit 2ac3573

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

service/dap/server.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3775,7 +3775,12 @@ func (s *Session) runUntilStopAndNotify(command string, allowNextStateChange *sy
37753775
if strings.HasPrefix(bp.Name, instructionBpPrefix) {
37763776
stopped.Body.Reason = "instruction breakpoint"
37773777
}
3778-
stopped.Body.HitBreakpointIds = []int{bp.ID}
3778+
// Filter out internal delve breakpoints (panic, fatal, hardcoded, etc.)
3779+
if bp.ID > 0 {
3780+
stopped.Body.HitBreakpointIds = []int{bp.ID}
3781+
} else {
3782+
stopped.Body.HitBreakpointIds = []int{}
3783+
}
37793784
}
37803785
}
37813786

0 commit comments

Comments
 (0)