Skip to content

Latest commit

 

History

History
78 lines (64 loc) · 2.16 KB

File metadata and controls

78 lines (64 loc) · 2.16 KB
title -PDB (Use Program Database) | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-tools
ms.tgt_pltfrm
ms.topic article
f1_keywords
/pdb
VC.Project.VCLinkerTool.ProgramDatabaseFile
dev_langs
C++
helpviewer_keywords
-PDB linker option
/PDB linker option
PDB linker option
PDB files, creating
.pdb files, creating
ms.assetid d23db0ce-10cb-427a-bc60-d6b2a852723d
caps.latest.revision 8
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

/PDB (Use Program Database)

/PDB:filename  

Remarks

where:

filename
A user-specified name for the program database (PDB) that the linker creates. It replaces the default name.

Remarks

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.

For more information, see .pdb Files as Linker Input.

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.

  2. Click the Linker folder.

  3. Click the Debug property page.

  4. Modify the Generate Program Database File property.

To set this linker option programmatically

  • See xref:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.ProgramDatabaseFile%2A.

See Also

Setting Linker Options
Linker Options