[fpc-pascal] console gdb in mac
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon Sep 15 20:39:50 CEST 2014
On 08/09/14 17:34, Joost van der Sluis wrote:
> On 09/07/2014 05:19 PM, Felipe Monteiro de Carvalho wrote:
>> How can I read the value of field FParent which is located in object
>> "Self" ?
>
> That's not that difficult:
>
> p this
> p this.fparent
You can also use "self". You don't even have to add self/this
explicitly, and just use "p fparent". Additionally, to print all fields
of a class instance, you have to use "p self^", as class instances are
pointers.
Jonas
More information about the fpc-pascal
mailing list