[fpc-pascal] Printing object

Michael Van Canneyt michael at freepascal.org
Sat Jun 7 16:49:46 CEST 2014



On Sat, 7 Jun 2014, Krzysztof wrote:

> Hi,
> 
> I need to analyze a lot of big objects (a lot of properties, global vars etc). Looking for easy way to print object info in
> format:
> 
> TObject
>   Property/VarName = value
> end;
> 
> It should also step into subobjects. Looking at typeinfo but can't find method for this.

This is done in classes unit. It requires a tcomponent, though.
the jsonrtti and rttiutils also can do this.

Michael.


More information about the fpc-pascal mailing list