[Lazarus] IDE: debug watch

Martin lazarus at mfriebe.de
Fri Mar 15 03:28:23 CET 2013


On 15/03/2013 02:14, Xiangrong Fang wrote:
> Hi,
>
> While single-stepping. I would like to check some data with the 
> "Evaluate/Modify" tool, for example view the count of a stringlist, I get:
>
> Type TSTRINGLIST = class  has no component named COUNT.
>
> As a matter of fact, I get this kind of thing with most variables, 
> except simple stuff like integer and string.  Why, and how do I view 
> property of an object?

http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Properties

TStringlist.Count is actually a function, and needs to be called. 
Currently GDB can not do that.

In that case try TSringlist.FList.FCount




More information about the Lazarus mailing list