Disable PDB File Generation in Release Mode

  • 4/15/2008
  • Author: Brian Pautsch
  • Category: Thoughts
  • 1288 Views
  • 1 Comments
  • Bookmark and Share

Migrating code to a Production environment is not a difficult task, but I have seen developers do some weird stuff. I have seen developers migrated code compiled for debug and then wonder why the site doesn't run very fast...not common, but really does happen. I have seen developers migrate the entire source code for a project to the Production environment. They call it their "back up" location. Ever hear of VSS? These are bad practices that should be avoided.

Have you ever noticed that code you build for Release or Publish still generates a PDB file? Up until recently I really didn't think much of it, but one day I got curious. I did a little research and found a great blog on compiling options and the implications. In short, you can disable generation of the PDB file (see image below), but it's not recommended. Read this article for more details:

http://blog.vuscode.com/malovicn/archive/2007/08/05/releasing-the-build.aspx

DisablePdbFile.jpg

User Comments

On 4/18/2008 Bonnie Klein said:

thanks for the info...very helpful!


Leave a Comment

Name: E-Mail: URL: Security Code: Type Code: Comments: