mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-15 10:39:22 +02:00
Debugger: Watches, re-add showing classname for objects
This commit is contained in:
parent
2c0a47c295
commit
1c9afcf9d5
@ -174,7 +174,9 @@ begin
|
|||||||
FldOwner := FldInfo.Owner;
|
FldOwner := FldInfo.Owner;
|
||||||
vis := '';
|
vis := '';
|
||||||
|
|
||||||
if (ADispFormat = wdfStructure) and (FldOwner <> nil) and (FldOwner.DirectFieldCount > 0) then begin
|
if (ADispFormat = wdfStructure) and (FldOwner <> nil) and (FldOwner.DirectFieldCount > 0) and
|
||||||
|
(AResValue.StructType in [dstClass, dstInterface, dstObject]) // record has no inheritance
|
||||||
|
then begin
|
||||||
if (Length(Result) > 0) then
|
if (Length(Result) > 0) then
|
||||||
Result := Result + sep;
|
Result := Result + sep;
|
||||||
Result := Result + indent + '{' + FldOwner.TypeName + '}';
|
Result := Result + indent + '{' + FldOwner.TypeName + '}';
|
||||||
@ -204,6 +206,14 @@ begin
|
|||||||
//Delete(Result, Length(Result), 1)
|
//Delete(Result, Length(Result), 1)
|
||||||
//Result := Result + sep + ')';
|
//Result := Result + sep + ')';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
tn := AResValue.TypeName;
|
||||||
|
if (tn <> '') and (ANestLvl=0) and
|
||||||
|
( (ADispFormat = wdfStructure) or
|
||||||
|
(AResValue.StructType in [dstClass, dstInterface])
|
||||||
|
)
|
||||||
|
then
|
||||||
|
Result := tn + Result;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TWatchResultPrinter.PrintProc(AResValue: TWatchResultData;
|
function TWatchResultPrinter.PrintProc(AResValue: TWatchResultData;
|
||||||
|
Loading…
Reference in New Issue
Block a user