When I compile a Release project (DEBUG is not enabled) in VS 2010, I’m seeing things like this in the generated EXE:
C:\Code\Test\Test\obj\x86\Release\Test.pdb
Why is this, and how can I disable it? I’ve tried Googling, but can’t find much.
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.
Allthough i havent actually tried looking in the exe file, you can disable generation of pdb files (and presumably their inclusion in the exe) from the project properties under Build > Advanced > Debug info. if you set this value to ‘None’, nothing should be generated
Even for release the default is to generate pdb files only.