[Lazarus] Hints in debugging

Martin lazarus at mfriebe.de
Wed Mar 7 20:37:39 CET 2012


On 07/03/2012 19:09, Richard Mace wrote:
> 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-ide.org/pipermail/lazarus/attachments/20120307/966f4dad/attachment-0003.html>


More information about the Lazarus mailing list