Use this option to create debug builds. If you do not specify /debug, /debug+, or /debug:full, you will be unable to debug the output file of your program.
By default, debugging information is not emitted (/debug-). To emit debugging information, specify /debug or /debug+.
For information on how to configure the debug performance of an application, see Making an Image Easier to Debug.
To set /debug in the Visual Studio integrated development environment
With a project selected in Solution Explorer, on the Project menu, click Properties. For more information, see Introduction to the Project Designer.
Click the Compile tab.
Click Advanced Compile Options.
Modify the value in the Generate Debug Info box.