Recent

Author Topic: Build modes - Release mode & Debug mode  (Read 11688 times)

JD

  • Hero Member
  • *****
  • Posts: 1913
Build modes - Release mode & Debug mode
« on: June 03, 2011, 02:26:58 pm »
Hi everyone,

I would like your opinion on my options for build nodes in Lazarus/FPC. I created two build nodes - a Release mode & a Debug mode - like in Delphi. The options for each of these build nodes are in the screenshots.

I want the Release mode to give me the smallest possible executable while the Debug mode should allow me to make full use of the debugger - watches, breakpoints etc.

Are my settings, as shown in the screenshots below sufficient or am I missing something?

I also want these options to be saved permanently so that for every project - past or future, I can choose between these build options & not have to redefine them again. I don't think this is currently possible but I may be wrong.

Thanks for your assistance.

JD
« Last Edit: June 03, 2011, 02:43:47 pm by JD »
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Build modes - Release mode & Debug mode
« Reply #1 on: June 04, 2011, 04:55:02 am »
Quote
I also want these options to be saved permanently so that for every project - past or future, I can choose between these build options & not have to redefine them again. I don't think this is currently possible but I may be wrong.
So do I, but the IDE bounds this configuration to the project, instead of its internal state. I think that should be included when you tick that checkbox in the bottom left saying "use these compiler options as default for new projects", but unfortunately it's not. Maybe you want to create a feature request for this in the bugtracker?

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Build modes - Release mode & Debug mode
« Reply #2 on: June 04, 2011, 08:50:43 am »
Quote
I also want these options to be saved permanently so that for every project - past or future, I can choose between these build options & not have to redefine them again. I don't think this is currently possible but I may be wrong.
So do I, but the IDE bounds this configuration to the project, instead of its internal state. I think that should be included when you tick that checkbox in the bottom left saying "use these compiler options as default for new projects", but unfortunately it's not. Maybe you want to create a feature request for this in the bugtracker?

I just submitted a feature request in the bugtracker. But you didn't comment on my options for Debug & Release modes. Do you think they are Ok?
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Build modes - Release mode & Debug mode
« Reply #3 on: June 04, 2011, 05:37:20 pm »
Quote
But you didn't comment on my options for Debug & Release modes. Do you think they are Ok?
Yep, exactly as mine.

 

TinyPortal © 2005-2018