What is a PDB file and how can I exclude it from the release folder when I rebuild my solution?
C# – a PDB file
cpdb-files
Related Topic
- C# – Deep cloning objects
- C# – How to enumerate an enum
- C# – What are the correct version numbers for C#
- C# – the difference between a field and a property
- C# – How to get a consistent byte representation of strings in C# without manually specifying an encoding
- C# – How to remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning
- C# – a NullReferenceException, and how to fix it
Best Answer
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".