dap: Exclude internal breakpoints from response (#4027)

This commit is contained in:
Conrad Irwin
2025-06-12 10:10:51 -06:00
committed by GitHub
parent 3c4e58b0d3
commit 2ac3573b74

View File

@ -3775,7 +3775,12 @@ func (s *Session) runUntilStopAndNotify(command string, allowNextStateChange *sy
if strings.HasPrefix(bp.Name, instructionBpPrefix) { if strings.HasPrefix(bp.Name, instructionBpPrefix) {
stopped.Body.Reason = "instruction breakpoint" stopped.Body.Reason = "instruction breakpoint"
} }
stopped.Body.HitBreakpointIds = []int{bp.ID} // Filter out internal delve breakpoints (panic, fatal, hardcoded, etc.)
if bp.ID > 0 {
stopped.Body.HitBreakpointIds = []int{bp.ID}
} else {
stopped.Body.HitBreakpointIds = []int{}
}
} }
} }