diff --git a/pkg/terminal/command.go b/pkg/terminal/command.go index d729311d..3103af8d 100644 --- a/pkg/terminal/command.go +++ b/pkg/terminal/command.go @@ -2876,6 +2876,20 @@ func exitCommand(t *Term, ctx callContext, args string) error { if !t.client.IsMulticlient() { return errors.New("not connected to an --accept-multiclient server") } + bps, _ := t.client.ListBreakpoints(false) + hasUserBreakpoints := false + for _, bp := range bps { + if bp.ID >= 0 { + hasUserBreakpoints = true + break + } + } + if hasUserBreakpoints { + yes, _ := yesno(t.line, "There are breakpoints set, do you wish to quit and continue without clearing breakpoints? [Y/n] ", "yes") + if !yes { + return nil + } + } t.quitContinue = true } return ExitRequestError{}