mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 02:36:18 +08:00 
			
		
		
		
	dap: Exclude internal breakpoints from response (#4027)
This commit is contained in:
		| @ -3775,7 +3775,12 @@ func (s *Session) runUntilStopAndNotify(command string, allowNextStateChange *sy | ||||
| 				if strings.HasPrefix(bp.Name, instructionBpPrefix) { | ||||
| 					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{} | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Conrad Irwin
					Conrad Irwin