我使用的是 Delphi 10.3.1 COMMUNITY 版本,在调试项目时无法查看通用的 tList。
我知道最新版本的 Delphi 不支持旧式的调试功能,可以查看通用的 tList。因此,我在下面的代码中使用了 tList.List 来评估 tList。
在 "tList.List" 中,我可以查看它,但不能在 "tList.List" 中查看。
我该如何在调试过程中查看
我知道最新版本的 Delphi 不支持旧式的调试功能,可以查看通用的 tList。因此,我在下面的代码中使用了 tList.List 来评估 tList。
在 "tList.List" 中,我可以查看它,但不能在 "tList.List" 中查看。
type
tRecord = record
Field: Integer;
end;
procedure TForm1.FormCreate(Sender: TObject);
var
_Record: tRecord;
_List1: TList<tRecord>;
_List2: TList<Integer>;
i: Integer;
begin
_List1 := TList<tRecord>.Create;
_List2 := TList<Integer>.Create;
for i := 0 to 4 do
begin
_Record.Field := i;
_List1.Add(_Record);
_List2.Add(i);
end;
Caption := IntToStr(_List1.List[0].Field) + IntToStr(_List2.List[0]);
_List1.Free;
_List2.Free;
end;
我该如何在调试过程中查看
tList<Integer>
?