Script(s)

what I learn is what u c

Disable .pdb file generation in Release Mode

with 3 comments

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

Compile Options

Goto Generate Debug Info (dropdown list) and select None.

No PDB

Advertisements

Written by gchandra

February 22, 2008 at 9:15 pm

3 Responses

Subscribe to comments with RSS.

  1. 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

  2. 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

  3. How to do the same for VS 2003 (framework 1.1)?

    Prerak V. Shah

    May 28, 2009 at 10:45 am


Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: