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

This commit is contained in:
Martin 2024-01-19 15:42:26 +01:00
parent ec98b15709
commit fd792b5d6f

View File

@ -2123,7 +2123,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;