how to detect if the software is in debug or production in visual studio c++ code example
Example: c++ check if debug or release visual studio
// visual studio c++
#if defined _DEBUG
//debug
#else
//release
#endif
// visual studio c++
#if defined _DEBUG
//debug
#else
//release
#endif