LazDebuggerFp: Don't set breakpoints when the debug session is already over

(cherry picked from commit fd792b5d6f)
This commit is contained in:
Martin 2024-01-19 15:42:26 +01:00
parent fbb65eaa20
commit ef82482ce5

View File

@ -2078,7 +2078,8 @@ procedure TFPBreakpoint.DoChanged;
begin
if FResetBreakFlag and not FSetBreakFlag then
ResetBreak
else if FSetBreakFlag then
else
if FSetBreakFlag and not (TFpDebugDebugger(Debugger).State in [dsStop, dsError]) then
SetBreak;
FSetBreakFlag := false;