Author Topic: Setting to prevent me debugging a Release build  (Read 6099 times)

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 196
Setting to prevent me debugging a Release build
« on: June 15, 2024, 02:47:26 pm »
I thought i had seen a settings for this but I can not find it any more nor a forum post about it.

I happen to waste a lot of time recently by starting the debugger on a Release build by accident and realizing it too late (when no breakpoints work).

I would like CodeBlocks to prevent me doing that or give me a nagging dialog "Your build has no debug symbols set.Are you sure?"

Is there an option somehwere?


Offline everSome

  • Multiple posting newcomer
  • *
  • Posts: 39
Re: Setting to prevent me debugging a Release build
« Reply #1 on: September 09, 2024, 05:08:46 am »
You'll have to build a nightly yourself to accomplish this. After compiling the source, an update script is run that copies all appropriate files into an output directory. Within this script you'll see three commands of the form:

REM echo Stripping debug info from output tree
strip "%CB_OUTPUT_DIR%/*.exe"
strip "%CB_OUTPUT_DIR%/*.dll"
strip "%CB_OUTPUT_RESDIR_STRIP%/plugins/*.dll"

delete/comment out these commands.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7695
    • My Best Post
Re: Setting to prevent me debugging a Release build
« Reply #2 on: September 09, 2024, 12:11:17 pm »
The last person with a question like this check marked the do not annoy me again box and it did not do what he wanted.
You might look for where to disable that option. The poster before me thought you want to debug Code::Blocks, if that is what you want to do ignore my post and follow his.

Look under Settings -> Environment [Disabled Dialogs]

Tim S.
« Last Edit: September 09, 2024, 12:13:43 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org