What is a PDB file?

Ata picture Ata · Oct 10, 2010 · Viewed 199.7k times · Source

What is a PDB file and how can I exclude it from the release folder when I rebuild my solution?

Answer

Jon Skeet picture Jon Skeet · Oct 10, 2010

A PDB file contains information for the debugger to work with. There's less information in a Release build than in a Debug build anyway. But if you want it to not be generated at all, go to your project's Build properties, select the Release configuration, click on "Advanced..." and under "Debug Info" pick "None".