mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 06:36:01 +02:00
Debugger: Fix DebugInspector stopped working after window was open with empty input. Issue #0034452
git-svn-id: trunk@59350 -
This commit is contained in:
parent
54026bdc80
commit
58bd48455a
@ -889,21 +889,27 @@ procedure TIDEInspectDlg.UpdateData;
|
|||||||
var
|
var
|
||||||
Opts: TDBGEvaluateFlags;
|
Opts: TDBGEvaluateFlags;
|
||||||
begin
|
begin
|
||||||
|
if DebugBoss.State in [dsRun, dsStop, dsIdle] then begin
|
||||||
|
// No request can be running
|
||||||
|
FUpdateLock := False;
|
||||||
|
FTestUpdateLock := False;
|
||||||
|
end;
|
||||||
|
|
||||||
if FUpdateLock then begin
|
if FUpdateLock then begin
|
||||||
FUpdateNeeded := True;
|
FUpdateNeeded := True;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
if FExpression = '' then begin
|
||||||
|
Clear;
|
||||||
|
StatusBar1.SimpleText := '';
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
|
||||||
FUpdateLock := True;
|
FUpdateLock := True;
|
||||||
FUpdateNeeded := False;
|
FUpdateNeeded := False;
|
||||||
try
|
try
|
||||||
FreeAndNil(FDBGInfo);
|
FreeAndNil(FDBGInfo);
|
||||||
if FExpression = ''
|
|
||||||
then begin
|
|
||||||
Clear;
|
|
||||||
StatusBar1.SimpleText := '';
|
|
||||||
exit;
|
|
||||||
end;
|
|
||||||
|
|
||||||
InputHistories.HistoryLists.Add(ClassName, FExpression,rltCaseSensitive);
|
InputHistories.HistoryLists.Add(ClassName, FExpression,rltCaseSensitive);
|
||||||
if EdInspect.Items.IndexOf(FExpression) = -1
|
if EdInspect.Items.IndexOf(FExpression) = -1
|
||||||
|
Loading…
Reference in New Issue
Block a user