Robert Cemper · Jun 10, 2019 1m read

A more useFull Object Dump

This is a coding example working on Caché 2018.1.3 and IRIS 2020.2 
It will not be kept in sync with new versions 
It is also NOT serviced by InterSystems Support !

During testing your code you are often confronted with the need to examine
the actual content of an object. Either using ZWRITE or $system.OBJ.Dump()
you get a picture of simple properties as "--- attribute values ---"
while "--- swizzled references ---" are more confusing than informative
and with "--- calculated references ---" you are just left in the lurch.


This small helper class Z.obj allows you to dump an object to terminal or
e.g in background to some stream for later review.
By default you see only properties with content,
         DO ##class(Z.obj).dumpToDevice(obj)
or if explicitly requested all properties.
        DO ##class(Z.obj).dumpToDevice(obj,1)
See it yourself:



0 1 3 612
Log in or sign up to continue