2

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?

Kenny
  • 1,110
  • 3
  • 13
  • 42
  • 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 Answers2

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.

Community
  • 1
  • 1
Sam Hobbs
  • 2,594
  • 3
  • 21
  • 32