Disable C ++ PDB Generation from IDE

We need to cancel the output of debugging characters. The options available in the project properties / configuration properties / c / C ++ / general / debug format are equivalent to / Z 7, / Zi and / ZI - I cannot find a way to completely omit the / Zx flag.

Unlike the situation here - we are building from an IDE.

I am using visual studio 2010, and the project at hand is a static library.

EDIT: Here is a view of my VS2012 installation. Is this some kind of installation problem? Are your debug-format-information options different? enter image description here

+10
visual-c ++ visual-studio-2010 pdb-files
source share
2 answers

You can delete it manually:

Step 1. The compiler.

  • Selected "Configuration Properties> C / C ++> General> Debug Information Format"
  • Hit DEL

enter image description here

Step 2. Linker.

You also need to disable the generation of debugging information for the linker

  • For Configuration Properties> Linker> Debugging> Generate Debug Info, None is selected .

enter image description here

Step 3. Profiler.

  • Also set β€œProfile” to β€œNo” in Linker> Advanced or you can still see the generated PDB files!
+26
source share

First of all, it is not , it is recommended to disable .PDB generation even for assembly release!

Anyway you just have to go:

  • Linker β†’ Debugging β†’ Generate Debug Info and set it to No
+1
source share

All Articles