/PDB

Syntax:

/PDB[:filename]

Controls how the linker produces debugging information. The optional filenameargument overrides the default filename for the program database. The default filename for the PDB has the base name of the program and the extension .PDB.

By default when you specify /DEBUG, the linker creates a program database (PDB), which holds debugging information. If you have not specified /DEBUG, the linker ignores /PDB.

If you specify /PDB:NONE, the linker does not create a PDB, but instead puts old-style debugging information into the executable file or DLL. The linker then calls the CVPACK.EXE tool, which must be in the same directory as LINK.EXE or in a directory in the PATH environment variable.

Debugging information in a program database must be in Microsoft Format (/DEBUGTYPE:CV). If you choose either COFF Format (/DEBUGTYPE:COFF) or Both Formats (/DEBUGTYPE:BOTH), no PDB is created.

Incremental linking is suppressed if you specify /PDB:NONE.

You can select this option in the visual development environment by selecting the Use Program Database check box in the Customize category of the Link tab in the Project Settings dialog box.