Debugger: Allow pause button to abort auto-continue of breakpoint

git-svn-id: trunk@57103 -
This commit is contained in:
martin 2018-01-16 18:13:40 +00:00
parent 91141381c8
commit 0bcb49ed21

View File

@ -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;