Author Topic: Why is it so hard to switch off debugging Information in exe ?  (Read 280 times)

coradi

  • Full Member
  • ***
  • Posts: 205
Why is it so hard to switch off debugging Information in exe ?
« on: October 25, 2026, 12:14:38 am »
Why I have do disable ist in every project?
Cloude can't help me too, to find this option.
Where can I find It?
And why it is so ahrd to find, many people in many groups ask the same, or have the same problem, that they think PAscal Programs are so big.
Maybe it default of better? or it ask before compiling and a box don't ask me again? after switch it?

By the way, cloude works so prefekt with lazarus!! mostly it worked well at first try
Amstrad Schneider CPC 6128
AVR8/ARM(STM32)

440bx

  • Hero Member
  • *****
  • Posts: 6628
Re: Why is it so hard to switch off debugging Information in exe ?
« Reply #1 on: October 25, 2026, 02:23:38 am »
Why I have do disable ist in every project?
Because you normally want debugging information when you start the project so you can use the debugger.  Once development and testing are done then you want to create a .exe with no debug symbols.

I have a setup with 4 configurations, two 64bit configurations and two 32 bit configurations, two of them produce executables with debugging symbols and the other two without.  I exported that configuration into an xml file, every time I start a new project, the first thing I do is import that xml file to have the options just the way I want them. 

I believe it is possible to tell Lazarus to use those options every time a new project is started without have to import an xml file but, everything I tried didn't give me the results I hoped for.  Exporting and importing did the trick, therefore that's what I use but, maybe someone can shed light on how to do it without using import/export.

Cloude can't help me too, to find this option.

Where can I find It?
Select "Project Options"->Compiler Options->Debugging, there you can set the debugging options you want.

And why it is so ahrd to find,
Personally, I don't think it's hard to find.

HTH.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

coradi

  • Full Member
  • ***
  • Posts: 205
Re: Why is it so hard to switch off debugging Information in exe ?
« Reply #2 on: October 25, 2026, 08:32:13 am »
It ism bcazse your solution i know, but its nit what u search.
I dint want to set it every time.
There is a field, set as default, but it doesnt work
Amstrad Schneider CPC 6128
AVR8/ARM(STM32)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12820
  • Debugger - SynEdit - and more
    • wiki
Re: Why is it so hard to switch off debugging Information in exe ?
« Reply #3 on: October 25, 2026, 08:58:21 am »
I can't test right now. But if the "set as default" checkbox does not work, then that sounds like a bug.

I know, that it at least works (or used ot work?) for the debug info type (dwarf 2 vs 3), as I have that changed, and that change affects any new project that I do.

I don't know if that checkbox could be replaced by something else, that would be easier to find. Yet that would not affect the easiness of just changing options for the current project. 
It may very well be that if some people (and I don't have numbers) don't find this, that this is because of there are overall a huge amount of options.

Yes the checkbox is not the most visible. But 99.9% of the time someone is in that dialog, they already have saved their custom defaults. Then they don't want to be disturbed by some big butten or the like for saving defaults.
And the very first time you chenge those you probably don't yet know enough to decide on defaults... So at some time in the middle... Not easy to find.



That said, pressing F1 in the project options brings up the wiki (well not now, but that is temporary until the server is updated).

I can't check if that wiki has help on settig the defaults. But it certainly should. If it doesn't then that really must be added there.

If it is there, then IMHO that is the first thing to do: Press F1. That comes way before asking Claude. (of which we have no control what it will answer)

coradi

  • Full Member
  • ***
  • Posts: 205
Re: Why is it so hard to switch off debugging Information in exe ?
« Reply #4 on: October 25, 2026, 09:04:05 am »
But it many answer it here, cloue will know the answer to. Cloude is fantastic dince one month.
I usecfor 90% cloude Lazarus, and rearly java or python.
Amstrad Schneider CPC 6128
AVR8/ARM(STM32)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12820
  • Debugger - SynEdit - and more
    • wiki
Re: Why is it so hard to switch off debugging Information in exe ?
« Reply #5 on: October 25, 2026, 09:06:58 am »
Actually, I was able to test (based on Lazarus 5rc/main).

If I saved "without debug info" as default, restarted the IDE -> then new projects did have debug info disabled.

I was then even ablo to create the build modes (default, debug, release), and save them. And every new project had them. Only new projects start with "default". I couldn't set them to start with "release". But if default is a copy of release then that works.

Or well, actually, if I remove default, keeping only the 2 others, and I move "release" to the top, and save that as default, then that works too.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12820
  • Debugger - SynEdit - and more
    • wiki
Re: Why is it so hard to switch off debugging Information in exe ?
« Reply #6 on: October 25, 2026, 09:14:25 am »
But it many answer it here, cloue will know the answer to. Cloude is fantastic dince one month.
I usecfor 90% cloude Lazarus, and rearly java or python.

I know that claude generalyl works well. But if for some reason it does not, then that is not in our control.

And I don't know if claude can read the forum (and wiki too, btw). You may have noted anubis. In theory claude could bypass it, but many AI do not. And unfortunately it is there because a lot of AI will be stopped by it.

Actually, we do NOT even want to stop AI. But some AI (and we don't have a list which ones) access our forum and wiki (and those of many other projects that now use Anubis too) with thousands of request per second, and obscure their origins in ways that make it clear they know they cause damage.

In the end we are left with only 2 realistic choices
- let them take our servers down by DDOS (then no one can access the forum at all)
- block them, and that includes the ones that play fair

The other option is not realistic. We don't have ten-thousands of dollars to spent on clusters of servers, and buying man-power to maintain this. Not even the man power to maintain lists of who plays by the rules and who doesn't.
« Last Edit: October 25, 2026, 09:16:51 am by Martin_fr »

 

TinyPortal © 2005-2018