Project settings to allow you to step through a program examining variables:
Debug Information Format | C7 Compatible(/Z7)
Optimization | Disabled(/Od)
Generate Debug Info | Yes(/DEBUG)