PDA

View Full Version : debug invironment variable



scieck
7th November 2011, 04:08
Hello,

is there and environment variable (automatically set) that I can check to find out if the program is running in release or debug mode?
I would like to do something like the code below, assuming there is and ENV variable (i.e. IS_DEBUG) that is set only when in debug mode.

#ifdef IS_DEBUG
// do something
#else
// don't do it
#endif

Santosh Reddy
7th November 2011, 04:52
#ifdef QT_DEBUG
#else
#endif