Sign in Join

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

Mailing lists / lazarus / 2010-12

Default debugging settings in project options

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Juha Manninen

These 3 settings are in Project options -> Linking page:

Generate Debugging Info For GDB (Slows Compiling) (-g) [X] Display Line Numbers in Run-time Error Backtraces (-gl) Generate dwarf debug information (-gw)

For a new project only -gl is selected by default. However, I am still able to debug the application. How is it possible?

I have learned that -gl is not for debug info but line number info as the label says.

-g and -gw are kind of alternatives, they never need to be selected at the same time. Is this correct?

I suggest that the GUI is clarified. -g and -gw should be placed next to each other if they are alternatives, or radiobuttons could be used for them. Debugging without debug info should not be possible. I guess there is a hack somewhere that allows it.

Regards,
Juha

Reply by email

Michael Van Canneyt
to Juha Manninen
Juha Manninen wrote 11 lines
These 3 settings are in Project options -> Linking page: Generate Debugging Info For GDB (Slows Compiling) (-g) [X] Display Line Numbers in Run-time Error Backtraces (-gl) Generate dwarf debug information (-gw) For a new project only -gl is selected by default. However, I am still able to debug the application. How is it possible? I have learned that -gl is not for debug info but line number info as the label says.

Line info presupposes debug info. It will not work without debug info. But including debug info doesn't mean line info is generated in run-time errors or exceptions.

Michael.

Reply by email