Debugger: Fix DebugInspector stopped working after window was open with empty input. Issue #0034452

git-svn-id: trunk@59350 -
This commit is contained in:
martin 2018-10-25 18:18:25 +00:00
parent 54026bdc80
commit 58bd48455a

View File

@ -889,21 +889,27 @@ procedure TIDEInspectDlg.UpdateData;
var
Opts: TDBGEvaluateFlags;
begin
if DebugBoss.State in [dsRun, dsStop, dsIdle] then begin
// No request can be running
FUpdateLock := False;
FTestUpdateLock := False;
end;
if FUpdateLock then begin
FUpdateNeeded := True;
exit;
end;
if FExpression = '' then begin
Clear;
StatusBar1.SimpleText := '';
exit;
end;
FUpdateLock := True;
FUpdateNeeded := False;
try
FreeAndNil(FDBGInfo);
if FExpression = ''
then begin
Clear;
StatusBar1.SimpleText := '';
exit;
end;
InputHistories.HistoryLists.Add(ClassName, FExpression,rltCaseSensitive);
if EdInspect.Items.IndexOf(FExpression) = -1