How to debug a release build?

7 01 2012

To enable debugging of a release build, change the following release build options.

  1. Open solution’s Property Pages dialog.
  2. In the C/C++ -> Optimization, select Disabled (/Od).
  3. In the C/C++ -> General -> Debug Information Format, select Program Database (/Zi).
  4. In the Linker -> Debugging -> Generate Debug Info , select Yes (/DEBUG).

After doing this, rebuild and test your program. You can now debug your release build application. 🙂




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: