Debug a release mode build?

General questions regarding the usage of CodeLite
cdiesh
CodeLite Curious
Posts: 3
Joined: Tue May 27, 2014 3:50 am
Genuine User: Yes
IDE Question: C++
Contact:

Debug a release mode build?

Post 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 :)
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Debug a release mode build?

Post 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
Make sure you have read the HOW TO POST thread
Post Reply