I have debug output in my program like this:
#define DEBUG ... #ifdef DEBUG std::cout << \"[RE_words] \" << m_re << std::endl; #endif <
Use _DEBUG. Visual C++ defines this for a Debug configuration. Check out the preprocessor directives for the Debug Configuration in your project's properties dialog.
_DEBUG