mirror of
				https://github.com/go-delve/delve.git
				synced 2025-11-01 03:42:59 +08:00 
			
		
		
		
	proc: Breakpoint to catch unrecovered panics
Automatically sets a breakpoint on runtime.startpanic, the function that gets called by runtime.dopanic when a panic is not recovered. Implements #317
This commit is contained in:
		| @ -515,6 +515,10 @@ func clearAll(t *Term, ctx callContext, args string) error { | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		if bp.ID < 0 { | ||||
| 			continue | ||||
| 		} | ||||
|  | ||||
| 		_, err := t.client.ClearBreakpoint(bp.ID) | ||||
| 		if err != nil { | ||||
| 			fmt.Printf("Couldn't delete %s at %s: %s\n", formatBreakpointName(bp, false), formatBreakpointLocation(bp), err) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 aarzilli
					aarzilli