LazDebuggerFp: return typeinfo for watches

git-svn-id: trunk@59558 -
This commit is contained in:
martin 2018-11-16 13:18:28 +00:00
parent e1a6096d71
commit f275a9445c

View File

@ -1402,7 +1402,11 @@ begin
if AWatchValue <> nil then
begin
AWatchValue.Value := AResText; //IntToStr(APasExpr.ResultValue.AsInteger);
AWatchValue.Validity := ddsValid;
AWatchValue.TypeInfo := ATypeInfo;
if IsError(ResValue.LastError) then
AWatchValue.Validity := ddsError
else
AWatchValue.Validity := ddsValid;
end;
end
else
@ -1410,6 +1414,7 @@ begin
AResText := 'Error';
if AWatchValue <> nil then
AWatchValue.Validity := ddsInvalid;
FreeAndNil(ATypeInfo);
end;
end;
finally
@ -1485,7 +1490,6 @@ begin
WatchValue.RemoveFreeNotification(@DoWatchFreed);
EvaluateExpression(WatchValue, WatchValue.Expression, AVal, AType);
AType.Free;
if (not FWatchAsyncQueued) and (FWatchEvalList.Count > 0) then
begin