mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 18:21:26 +02:00
Debugger: Allow pause button to abort auto-continue of breakpoint
git-svn-id: trunk@57103 -
This commit is contained in:
parent
91141381c8
commit
0bcb49ed21
@ -1908,7 +1908,7 @@ begin
|
||||
or (dcRun in FDebugger.Commands) or (FDebugger.State = dsIdle));
|
||||
// Pause
|
||||
itmRunMenuPause.Enabled := CanRun and DebuggerIsValid
|
||||
and (dcPause in FDebugger.Commands);
|
||||
and ((dcPause in FDebugger.Commands) or FAutoContinueTimer.Enabled);
|
||||
// Show execution point
|
||||
itmRunMenuShowExecutionPoint.Enabled := CanRun and DebuggerIsValid
|
||||
and (FDebugger.State = dsPause);
|
||||
@ -2410,6 +2410,7 @@ begin
|
||||
if (MainIDE.ToolStatus <> itDebugger)
|
||||
or (FDebugger = nil) or Destroying
|
||||
then Exit;
|
||||
FAutoContinueTimer.Enabled := False;
|
||||
FDebugger.Pause;
|
||||
Result := mrOk;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user