Enable Debug and Release build modes by default lazarus / 11-Options ---------------------------------------------------------------------- andresayang · 2018-03-10 17:47 Hi all, Is there any way to enable Debug and Release build mode by default ? (ie automatically set when creating a new project) Thanks, Andre ---------------------------------------------------------------------- ASerge · 2018-03-10 18:44 Create a new empty project. Open the "Options for Project". Configure the Build modes, as well as all other options for each mode. Set checkbox "Set compile options as default". OK. ---------------------------------------------------------------------- andresayang · 2018-03-11 03:42 Hi, Wow, thanks a lot Cheers Ps: New project creation is not mandatory, you can do this within your working project. The funny thing is now I know where it is, i see it each time, never saw the option before. ---------------------------------------------------------------------- Rinzwind · 2022-09-05 05:13 Tried it... If I close the IDE instance (or project), the debug and release options are gone again and replaced with 'Default'. Any real solution? Or am I missing something? Why not debug and release by default anyway? ps tried to it as run-as-administrator. No success too. ---------------------------------------------------------------------- ASerge · 2022-09-05 09:50 Quote from: Rinzwind on September 05, 2022, 07:13:11 amAny real solution? Or am I missing something? Set checkbox "Set compile options as default". ---------------------------------------------------------------------- Rinzwind · 2022-09-06 04:22 I did, it did not save anything it seems? v2.2.2 64 bit on Wndows 10. Edit: AHA it DOES work when set through menu Project/Project Options.../Compiler Options But does NOT work when set through the 'Change Build Mode' command on the toolbar (bug?) ---------------------------------------------------------------------- JuhaManninen · 2022-09-07 08:33 Quote from: Rinzwind on September 06, 2022, 06:22:13 amAHA it DOES work when set through menu Project/Project Options.../Compiler Options But does NOT work when set through the 'Change Build Mode' command on the toolbar (bug?) It works here using the development branch "main". It asks "Save changes to project xxx?". I guess a fix for this bug was not merged to the fixes branch. ---------------------------------------------------------------------- Arioch · 2022-09-15 17:58 I used the option of after the fact creating debug/release targets twice. And the last time it also left "Default" target, so i ended up with three targets. It was confusing. When i first discovered that action - it either did delete the now obsolete Default, or maybe i did and forgot it. Anyway, i'd guess when a button to retroactively create Debug/Release targets is clicked - the wizard should ask user if the Default target should be deleted. So user would not be confused later. Or, if possible or if was customized, Default target should had been renamed into Debug (but this would make non-standard paths there, so i am not sure)