Recent

Author Topic: Enable Debug and Release build modes by default  (Read 4099 times)

andresayang

  • Jr. Member
  • **
  • Posts: 74
Enable Debug and Release build modes by default
« on: March 10, 2018, 06:47:56 pm »
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
Linux, Debian 12
Lazarus: always latest release

ASerge

  • Hero Member
  • *****
  • Posts: 2034
Re: Enable Debug and Release build modes by default
« Reply #1 on: March 10, 2018, 07:44:16 pm »
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

  • Jr. Member
  • **
  • Posts: 74
Re: Enable Debug and Release build modes by default
« Reply #2 on: March 11, 2018, 04:42:53 am »
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.
« Last Edit: March 11, 2018, 11:31:09 pm by andresayang »
Linux, Debian 12
Lazarus: always latest release

Rinzwind

  • New member
  • *
  • Posts: 5
Re: Enable Debug and Release build modes by default
« Reply #3 on: September 05, 2022, 07:13:11 am »
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.
« Last Edit: September 05, 2022, 07:23:49 am by Rinzwind »

ASerge

  • Hero Member
  • *****
  • Posts: 2034
Re: Enable Debug and Release build modes by default
« Reply #4 on: September 05, 2022, 11:50:10 am »
Any real solution? Or am I missing something?
Set checkbox "Set compile options as default".

Rinzwind

  • New member
  • *
  • Posts: 5
Re: Enable Debug and Release build modes by default
« Reply #5 on: September 06, 2022, 06:22:13 am »
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?)
« Last Edit: September 06, 2022, 06:26:09 am by Rinzwind »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4133
  • I like bugs.
Re: Enable Debug and Release build modes by default
« Reply #6 on: September 07, 2022, 10:33:12 am »
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?)
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.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Arioch

  • Sr. Member
  • ****
  • Posts: 415
Re: Enable Debug and Release build modes by default
« Reply #7 on: September 15, 2022, 07:58:02 pm »
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)
« Last Edit: September 15, 2022, 08:00:16 pm by Arioch »

 

TinyPortal © 2005-2018