[Lazarus] Is there a setting to include debug symbols when starting from Lazarus only?

Bo Berglund bo.berglund at gmail.com
Wed Apr 19 18:34:26 CEST 2023

On Sun, 16 Apr 2023 13:32:12 +0200, Martin Frb via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>On 16/04/2023 11:15, Bo Berglund via lazarus wrote:
>> - Use Run menu Build or Compile: no symbols should be included.
>> - Click the green run arrow button then the symbols will be included.
>I think the closest you may get to this is build modes.
>But all and any button/key/menu always use the current mode. you have to 
>change it via the drop down on the toolbutton.
>projectgroups may offer a direct "build mode xxx"

Fixed it by creating two build modes (Debug and Release) on suggestion from
Lazarus itself in the Release dialog from Project Options.

When I use Release the symbols are not added and when using Debug, then the
symbols are added *and* the executable name is changed to originalname.dbg.
This is of course on Linux, what happens on Windows I don't know.
originalname.exe.dbg would not work of course...

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list