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.
-- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus