[Lazarus] Debugging in Libraries.
Martin Frb
lazarus at mfriebe.de
Mon Jan 18 21:13:42 CET 2016
On 18/01/2016 18:34, Donald Ziesig wrote:
> Hi All:
>
> I have encountered a problem doing things that used to work. (Using
> Lazarus 1.4.4 on Linux and 1.4.2 on Raspbian)
>
> Specifically, I can no longer step into subprograms in library units,
> and when I set a breakpoint in the library code it is colored dull
> green as opposed to bright red in the main program. Some, but not all,
> of the library code is implemented using generics.
>
> I can't see anything I am doing differently than before (except that I
> copied the entire source for the program and library from a Raspberry
> PI, including the configurations. The PI also had this problem).
Dull green, usually (check debug output window) means that gdb returned,
that there is on code on the requested line/number.
With generics, usually the oposite is the case, there are several blocks
of code containing the location (and on windows, I have seen gdb
handling that, at least in some cases).
The question then is, if fpc did generate sufficient debug info or if
gdb has an issue. (try stabs and dwarf)
ensure you disable "inlining"
More information about the Lazarus
mailing list