Page 1 of 1

Debug a release mode build?

Posted: Tue Aug 26, 2014 4:53 am
by cdiesh
Hey this might sound like a dumb question but is it possible to use the debugger on a release mode build?
I found that when I set breakpoint sin release mode, I couldn't get any breaks to activate, and I was just wondering if I was missing something or if this is simply impossible.

Thanks!

PS I'm using Windows 7 with Codelite 6.0 on wxWidgets app :)

Re: Debug a release mode build?

Posted: Tue Aug 26, 2014 9:46 am
by eranif
The difference between a release and debug mode in codelite is that debug mode as the -g flag enabled
And optimizations are set to 0.
To debug a release configuration you need to add the -g flag to the compiler options .

Eran