Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Generating Debug Info (pdb) making my application slower in runtime?

In .NET applications is generating debug info (pdb) making my application slower in runtime? or do they only comes into the play when the application crashes?

like image 279
dr. evil Avatar asked Apr 06 '09 20:04

dr. evil


1 Answers

They only come into play when the program crashes. PDB's just contain information for mapping run-time information to source information that is useful for debugging.

However, building your program in debug mode versus retail mode can make it slower at runtime. This is independent of PDB's - You can generate debug info for retail binaries and use it for debugging. Debug builds typically are less-aggressively optimized in order to make debugging easier.

You should always generate PDB's, even for retail builds. Retail builds are usually what gets deployed, and therefore many problems you'll look at will be from these systems.

like image 132
Michael Avatar answered Oct 14 '22 20:10

Michael