Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-03

IDE: debug watch

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Xiangrong Fang

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?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130315/32547872/attachment.html>

Reply by email

Martin
to Xiangrong Fang
Xiangrong Fang wrote 10 lines
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

Reply by email