DBG: Improved reaction speed during debugging (now watches evaluation can be stopped, if user wants to continue stepping/running)

git-svn-id: trunk@28763 -
This commit is contained in:
martin 2010-12-18 16:11:39 +00:00
parent 0ab22c4b2d
commit 3fe0875dfb

View File

@ -262,18 +262,23 @@ const
{ TTestWatch }
procedure TTestWatch.DoChanged;
var
v: String;
begin
if FMaster = nil then exit;;
if FMaster.Valid = vsValid then begin
if FHasValue and (FValue <> FMaster.Value) then begin
FHasMultiValue := True;
FValue := FValue + LineEnding + FMaster.Value;
end
else
FValue := FMaster.Value;
FHasValue := True;
if (FMaster.Valid = vsValid) then begin
v := FMaster.Value;
if v <> '<evaluating>' then begin // TODO: need better check
if FHasValue and (FValue <> v) then begin
FHasMultiValue := True;
FValue := FValue + LineEnding + v;
end
else
FValue := v;
FHasValue := True;
FTypeInfo := Master.TypeInfo;
FTypeInfo := Master.TypeInfo;
end;
end;
end;