[fpc-pascal]How to obtain runtime type of class object in debugger

Olle Raab automagi at algonet.se
Wed Feb 26 17:31:04 CET 2003


Thanks for all tips :)

However I am interested in how to, from within the IDE debugger (or GDB),
"watch" the most specific class of an object without modifying the source
code.

That is i will see class TClassB even if the object reference is of type
TClassA:

> type
>   TClassA = class;
>   TClassB = class(TClassA);



I assume the WMT of the object must be used for this...

Olle






More information about the fpc-pascal mailing list