mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-19 19:09:28 +01:00
debugger: show Variant and ShortString type as simple value instead of record
git-svn-id: trunk@22991 -
This commit is contained in:
parent
dc5c58c871
commit
bd0aefe8b1
@ -127,7 +127,17 @@ begin
|
||||
if not Assigned(FDBGInfo.Fields) then exit;
|
||||
EditInspected.Text:=FExpression+' : '+FDBGInfo.TypeName;
|
||||
GridDataSetup;
|
||||
ShowDataFields;
|
||||
// handle special records
|
||||
if (FDBGInfo.TypeName = 'VARIANT') or
|
||||
(FDBGInfo.TypeName = 'Variant') or
|
||||
(FDBGInfo.TypeName = 'ShortString') then
|
||||
begin
|
||||
FGridData.Cells[0,1]:=FExpression;
|
||||
FGridData.Cells[1,1]:=FDBGInfo.TypeName;
|
||||
FGridData.Cells[2,1]:=FHumanReadable;
|
||||
end
|
||||
else
|
||||
ShowDataFields;
|
||||
FGridData.AutoSizeColumn(2);
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user