[Lazarus] Default debug mode and internal debugger
Mattias Gaertner
nc-gaertnma at netcologne.de
Sun Dec 7 21:58:00 CET 2014
On Sun, 07 Dec 2014 20:25:50 +0000
Martin Frb <lazarus at mfriebe.de> wrote:
> On 07/12/2014 16:38, Mattias Gaertner wrote:
> > On Sat, 06 Dec 2014 21:16:47 +0000
> > Martin Frb <lazarus at mfriebe.de> wrote:
>[...]
> Well at first I thought that simply the choice of stabs/dwarf should
> follow.
> Though of course it has nothing to follow, if the project has debug
> disabled, but the package has it on (that is possible)
>
> We could make the main toggle "Generate debug info" to follow too. But
> that is not needed. It can always be on, generating ppu with info, and
> the project can use -Xs (strip).
>
>
> Looking at it:
> "-Xg" (external dbg info), that is a linker flag. That probably makes no
> sense in package options?
Actually a package can build a program. Although it is unusual and
not needed anymore when we have project groups.
So, yes, I agree it should be disabled when following Project Settings.
> "-gh" afaik is also project only (the mem manager applies to the entire exe)
>
> "-gl" makes some sense, as it adds some basic debug info (line info),
> not sure about the inclusion of the units (lineinfo, ...) that cerate
> the dump, are they project wide?
> That is using -gl on a package, ifin is ont used in the project, will
> that work?
No.
So -Xg, -gh, -gl.
What about -pg and -vg?
BTW, why is -gt under "Debugging info" instead of "Checks
and assertion"? It increases the nitpicking.
Mattias
More information about the Lazarus
mailing list