Code::Blocks Forums

User forums => Help => Topic started by: tigerbeard on June 15, 2024, 02:47:26 pm

Title: Setting to prevent me debugging a Release build
Post by: tigerbeard 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?

Title: Re: Setting to prevent me debugging a Release build
Post by: everSome 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.
Title: Re: Setting to prevent me debugging a Release build
Post by: stahta01 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.