// Program is compiled in debug mode
Open Project Properties, C++, Precompiler, Preprocessor definitions. Here you can see all precompiler constants defined in the project. _DEBUG is defined in Debug configuration and not defined in Release configuration. You can add your own constants here and work with them in the code.
$(ConfigurationName) is macro for build tools, it is not available in the code.