When you navigate through the project settings in Visual Studio, most of the options tell you that their equivalent command line key.
To disable connection time PDB generation, lower the /DEBUG switch.
To disable PDB generation during compilation, omit the /Z switch ( /Z{7|i|I} ).
[Edit] Oh, actually, if you use the /Z7 switch, debugging information is generated in the object file instead of the PDB. So this is one. However, compilation is done without it. Therefore, omit if you do not need debugging information.
paddy
source share