When developing I understand why PDB files are build.
But when I deploy my website for the production server the PDB files does still exists.
I dont’s understand why.
Should I delete them in production environment or leave them
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The PDB files allow Stack Traces of your code to be logged when your application throws an Unhandled Exception.
If your website has
CustomErrorsin the web.config set toOFFthen your erroring code will be visible to everybody. This is BAD.If your website has
CustomErrorsin the web.config set toONorRemoteOnlythen your erroring code will not be visible to the public, however you will be able to find the StackTrace in the server Event Log and this may help you to track down errors in your code. This is OK.If you delete the PDBs (or stop then from publishing via your project build/publish configuration) then your site will not log your code in your Stack Trace, however it will log other stack information. In any case, always set
CustomErrorsin the web.config toONorRemoteOnly. Always Do this.