What compiler options are required to create good symbol files?

For Native Windows Applications

Ensure that you have the following compiler options set for all of your C++ projects in the release configuration /Zi.

This option generates symbol files (.PDB) to be generated /Oy- this option guarantees stack frame creation for all functions in the project.

.NET Managed Applications

Modify your Release build settings so that debug information (.PDB files) is created.