_DEBUG

The compiler defines _DEBUG when you specify the /MTd or /MDd option. These options specify debug versions of the C run-time library.

For more information, see CRT debugging techniques.

See also

Control flags