Debugging Preparation: Recommended Property Settings
Certain properties should be set the same way for all unmanaged debugging scenarios.
The following tables display recommended property settings.
Settings not listed here may vary among the different unmanaged project types.
Set to Disabled (/0d). Optimized code is harder to debug, because the generated instructions do not correspond directly to your source code. If you find your program has a bug that appears only in optimized code, you can turn this setting on, but remember that code shown in the Disassembly window is generated from optimized source that may not match what you see in your source windows. Other features, such as stepping, may not behave as expected.
Generate debugging information
You should always set this option to Yes (/DEBUG) to create debugging symbols and files needed for debugging. When the application goes into production, you can set it off.