Disable .pdb file generation in Release Mode
Visual Studio 2005 – Compile Options
In Visual Studio 2005, .pdb file gets generated in Debug mode and Release mode.
In debug mode it loads the entire symbol table, in Release mode it loads the key symbols.
In Release mode, the generated .pdb can be deleted very well deleted. (Because framework does not uses it)
To disable .pdb generation in Release mode, goto
Project Properties > Compile Tab > Advanced Compile Options
Goto Generate Debug Info (dropdown list) and select None.
I would think twice before doing this, because by removing pdb you would lost systaining data and no performance gain
I’ve blogged more about it here
http://blog.vuscode.com/malovicn/archive/2007/08/05/releasing-the-build.aspx
Nikola Malovic
February 24, 2008 at 4:31 pm
Why would you want to do this? If you don’t have your pdb files, you can’t analyze a minidump from the field or debug a release build or any number of other useful things. Generate them and keep them!
Russell Mull
February 25, 2008 at 11:26 pm
How to do the same for VS 2003 (framework 1.1)?
Prerak V. Shah
May 28, 2009 at 10:45 am