DBG: Ensure Snapshot Watches are enabled

git-svn-id: trunk@32155 -
This commit is contained in:
martin 2011-09-02 14:16:03 +00:00
parent 92cd19f574
commit d909440b1a

View File

@ -41,7 +41,7 @@ unit Debugger;
interface interface
uses uses
TypInfo, Classes, SysUtils, Laz_XMLCfg, math, TypInfo, Classes, SysUtils, Laz_XMLCfg, math, FileUtil,
LCLProc, IDEProcs, DebugUtils, maps; LCLProc, IDEProcs, DebugUtils, maps;
type type
@ -7222,6 +7222,7 @@ begin
TCurrentWatchValueList(FValueList).SnapShot := nil; TCurrentWatchValueList(FValueList).SnapShot := nil;
end else begin end else begin
FSnapShot.Assign(self); FSnapShot.Assign(self);
FSnapShot.Enabled := True; // Snapshots are always enabled
TCurrentWatchValueList(FValueList).SnapShot := FSnapShot.FValueList; TCurrentWatchValueList(FValueList).SnapShot := FSnapShot.FValueList;
end; end;
end; end;
@ -7917,7 +7918,7 @@ begin
then FArguments.Assign(AnArguments); then FArguments.Assign(AnArguments);
FFunctionName := AFunctionName; FFunctionName := AFunctionName;
FSource := ASource; FSource := ASource;
FFullFileName := AFullFileName; FFullFileName := TrimFilename(AFullFileName);
FLine := ALine; FLine := ALine;
FState := AState; FState := AState;
end; end;