I have debug output in my program like this:
#define DEBUG ... #ifdef DEBUG std::cout << \"[RE_words] \" << m_re << std::endl; #endif <
Yes, you should check project options page, Compile->Advanced compile options. However, VS by default automatically defines DEBUG directive for Debug mode.