When I compile a .sln file with Visual Studio 2013 a .pdb file is generated. How can I disable the creation of the .pdb file?
Asked
Active
Viewed 7,518 times
2
-
The `.pdb` file should not be generated when compiling the `.sln` file in `Release` configuration. Does that help? – Anthony Forloney Dec 26 '14 at 00:13
-
2@AnthonyForloney Still happening after cleaning and rebuilding, will double check tomorrow, thanks. – Kenny Dec 26 '14 at 00:22
-
1@AnthonyForloney I'm using the Release directory, the executable from there still contains the path of a pdb file from the project. Active solution configuration is Release. – Kenny Dec 26 '14 at 15:06
2 Answers
5
I found it.
Project -> Properties -> Build
Last category there is Output, click the Advanced button and the Debug info should be none.

Kenny
- 1,110
- 3
- 13
- 42
-
You asked how to disable the pdb file, correct? This will disable all debug output, and that is not what you asked. – Sam Hobbs Jan 11 '15 at 20:12
-
1@user34660 Actually, it is. There's a drop-down there with 3 options: none, create pdb and full debug information. If you use none, it doesn't create. – Kenny Jan 11 '15 at 21:24
2
In Project Properties see "Configuration Properties -> Linker -> Debugging -> Generate Debug Info".
Also see:
PDB Files - What are they and how to generate them
.net - Release generating .pdb files, why?
Those are relevant to Visual Studio 2013 also. Be sure to read the stackoverflow thread since it has important information.
-
-
I do not understand "lower version". If you mean that the articles describe previous versions, note that they apply to the current version also. – Sam Hobbs Dec 26 '14 at 19:18
-
I'm sorry, you were right. It actually appears on your first link, didn't notice. – Kenny Jan 10 '15 at 17:02
-
This explains how to disable just the pdb file and that is what you asked so why the downvote? – Sam Hobbs Jan 11 '15 at 20:12
-
-
Mistakes happen. I have edited my answer so perhaps you can upvote now but the important thing is that I know I did help you. – Sam Hobbs Apr 04 '16 at 16:20
-
-
2
-