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

Giuliano Colla giuliano.colla at fastwebnet.it
Thu Apr 20 00:28:54 CEST 2023


Il 19/04/2023 18:34, Bo Berglund via lazarus ha scritto:

> Result:
> 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...

No, you have misunderstood. The executable name is unchanged. 
Originalname.dbg is *added*. It contains only the debug symbols. If you 
check you'll see that both originalname and originalname.dbg have 
exactly the same timestamp.

You have an option in Project->Options->Debugging, named "Use external 
debug symbols file".
If checked you get two files: originalname and originalname.dbg. If you 
uncheck it you get only originalname, but much larger.

With the external debug symbols file you may, if you want, deploy the 
debug version by releasing just originalname. It will be larger and less 
optimized than a release version, but it will be identical to the one 
you have debugged. The choice is yours.

Giuliano

-- 
Do not do to others as you would have them do to you.They might have different tastes.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20230420/316f85f1/attachment.htm>


More information about the lazarus mailing list