/PDB:filename
By default, when the Generate Debug Info (/DEBUG) option is specified, the linker creates a program database (PDB), which holds debugging information. If Generate Debug Info (/DEBUG) is not specified, the Use Program Database (/PDB) option is ignored.
Command line | Project settings | Description |
---|---|---|
/PDB:filename | Use program database, Program database name |
The linker creates a program database file with the given file name. |
The default file name for the PDB has the base name of the program and the extension .pdb. To override the default name, type a file name in the Program database name text box, or specify /PDB:filename on the command line.
Debugging information in a PDB must be in Microsoft Format (/DEBUGTYPE:CV).
Incremental linking is suppressed if the Use program database check box is not selected in the IDE.
A PDB file can be up to 2GB.
If you create the PDB file with the /Zi) compiler option, it will create a PDB with a 4K page size. The linker's /PDB option creates a PDB file with a 1K page file size.
For more information, see .pdb Files as Linker Input.
Setting Linker Options | Linker Options | FAQ: Building Your Program