[Lazarus] debug hints in lazarus [Re: [fpc-devel] Status and ideas about debug info (stabs, dwarf / dwar3)]
lazarus at mfriebe.de
Tue Sep 13 16:41:19 CEST 2011
On 13/09/2011 14:01, Joost van der Sluis wrote:
> On Tue, 2011-09-13 at 14:07 +0200, Graeme Geldenhuys wrote:
>> On 13/09/2011 00:12, Martin wrote:
>>> I do not recall having ever had an issue with globals, nor local vars.
>> Nope, the problem is still there... just as when I tested it back in
>> This exact same code works perfectly in Delphi 7 and Kylix 3. Above is
>> an old screenshot, but I just tested with latest Lazarus Trunk and GDB
>> 7.3 - nothing has changed.
> Ah. That problem. Luckily (?) this has nothing to do with gdb. Also any
> Pascal debugger won't fix this.
> This problem exists because there is no debug-information generated for
> the unit containing that global variable.
> Adding a compiler option to add type and global-variables
> debug-information to units, without lineinfo is on my todo list for a
> long time now. That way the rtl and part of the fcl can be compiled with
> this debug-info. Maybe I should spend some time on it.
BTW: is it correct that some info about classes from units without debug
info, does get into the app?
At least if you have an inherited class, in a unit with debug info.
e.g If TForm1 in unit1 has debug info, then TComponent (which is a base
class) appears to be included too?
More information about the Lazarus