Debugger, Test: don't get current location when not paused

This commit is contained in:
Martin 2024-03-18 15:28:27 +01:00
parent 6aa6ea6983
commit 34a5fe0392

View File

@ -465,7 +465,8 @@ function TTestDbgDebugger.RunToNextPause(ACmd: TDBGCommand; ATimeOut: Integer;
AWaitForInternal: Boolean): Boolean;
begin
Result := False;
with CurLocation do DebugLnEnter('>>> RunToNextPause Starting at %s %d @ %x', [SrcFile, SrcLine, Address]);
if LazDebugger.State in [dsPause, dsInternalPause] then
with CurLocation do DebugLnEnter('>>> RunToNextPause Starting at %s %d @ %x', [SrcFile, SrcLine, Address]);
case ACmd of
dcRun: LazDebugger.Run;
dcStepOver: LazDebugger.StepOver;