description | title | ms.date | f1_keywords | helpviewer_keywords | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: /PDB (Use Program Database) |
/PDB (Use Program Database) |
03/24/2025 |
|
|
Specify the name of the program database (PDB) file that the linker creates.
/PDB:filename
filename
A user-specified name for the program database (PDB) that the linker creates. It replaces the default name. When expanded, the fully qualified filename must not exceed MAX_PATH
(260 characters).
By default, when /DEBUG
is specified, the linker creates a program database (PDB) which holds debugging information. The default file name for the PDB has the base name of the program and the extension .pdb.
Use /PDB:
filename
to specify the name of the PDB file. If /DEBUG
is not specified, the /PDB
option is ignored.
A PDB file can be up to 2GB in size.
For more information, see .pdb Files as Linker Input.
- Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
- Select the Configuration Properties > Linker > Debug property page.
- Modify the Generate Program Database File property.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.ProgramDatabaseFile%2A.