Sign in Join

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

Mailing lists / lazarus / 2012-03

Hints in debugging

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Richard Mace

Hi,

I have the following code, with a break point on if for debugging:

oUser.Id := fSQLQuery.Fields[0].AsInteger;

When I highlight the Id part of oUser, I get an error, however, when I highlight oUser, I get a breakdown of all of the parameters, including the Id.

Any ideas?

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120307/67aa5d37/attachment.html>

Reply by email

Martin
to Richard Mace
Richard Mace wrote 12 lines
Hi, I have the following code, with a break point on if for debugging: oUser.Id := fSQLQuery.Fields[0].AsInteger; When I highlight the Id part of oUser, I get an error, however, when I highlight oUser, I get a breakdown of all of the parameters, including the Id. Any ideas?

http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Properties using dwarf or stabs?

In the full object, do you see: "ID" or "FId" (the field)?

Open the Debug Output window, and watch what is sent to gdb when trying to eval "ID" (result is cached, so must be 1st attempt) -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120307/966f4dad/attachment.html>

Reply by email