/pdb (Specify Debug Symbol File)
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

/pdb (Specify Debug Symbol File) (C# Compiler Options) 

The /pdb compiler option specifies the name and location of the debug symbols file.



The name and location of the debug symbols file.

When you specify /debug (Emit Debugging Information) (C# Compiler Options), the compiler will create a .pdb file in the same directory where the compiler will create the output file (.exe or .dll) with a file name that is the same as the name of the output file.

/pdb allows you to specify a non-default file name and location for the .pdb file.

This compiler option cannot be set in the Visual Studio development environment, nor can it be changed programmatically.

Compile t.cs and create a .pdb file called tt.pdb:

csc /debug /pdb:tt t.cs
© 2015 Microsoft