Forum > FV/Textmode IDE
Saving the "Strip all debug symbols from executable"
spigor:
Hi
I'm using the FPC 3.2.2. Is there a way to turn on the Options->Debugger->"Strip all debug symbols from executable" option permanently? I'm saving the setup in fp.ini, but this option is no longer on after reloading the FPC.
Thank you in advance for your input.
jamie:
You are talking about the -Xs ?
Martin_fr:
Doesn't the "Set compiler options as default" checkbox work for that? In the lower left corner of the "Project Options" dialog (above the help button).
MarkMLl:
--- Quote from: spigor on June 27, 2025, 06:05:02 am ---I'm using the FPC 3.2.2. Is there a way to turn on the Options->Debugger->"Strip all debug symbols from executable" option permanently? I'm saving the setup in fp.ini, but this option is no longer on after reloading the FPC.
--- End quote ---
FPC is a compiler, it has a command line rather than menus. What else are you running, what's its version number etc.?
Assuming for a moment (as does Martin) that you're running Lazarus. fp.ini isn't relevant here since that's for the FP character-mode editor/etc. which is intended to be roughly comparable with Turbo Pascal and is read neither by the FPC compiler nor by Lazarus. You should find an fpc.cfg file somewhere which will usually be used, but generally speaking that's best not fooled with and the storage location will vary depending on the OS etc. you're using (which you've not told us).
MarkMLl
MarkMLl:
--- Quote from: Martin_fr on June 28, 2025, 01:49:53 am ---Doesn't the "Set compiler options as default" checkbox work for that? In the lower left corner of the "Project Options" dialog (above the help button).
--- End quote ---
Assuming that OP is, in fact, using Lazarus.
That will set the defaults for subsequently-created projects, although there are some fields- notably those that usually contain macros- which aren't handled properly (unless that's something that's been fixed recently).
MarkMLl
Navigation
[0] Message Index
[#] Next page