Upravit

Sdílet prostřednictvím


PDB Symbol Files

The program database (PDB) symbol file for a trace provider, such as an application or driver, includes instructions for formatting trace messages so that they can be presented in a human-readable display.

The trace message formatting instructions are part of the trace provider source code. The WPP preprocessor extracts them from the code and adds them to the trace provider's PDB symbol file.

The compiler generates a PDB file when you compile a debug (checked) version of the trace provider. The build process creates a PDB file by default when you use BinPlace to build a trace provider.

The trace consumers in the WDK, TraceView and Tracefmt, can extract the trace message formatting information directly from the PDB file or from a TMF file. Others require a TMF file. Tracepdb takes a PDB file as input, extracts the formatting information, and creates a TMF file as output.

Other trace consumers, such as Tracerpt, a tool included in Windows, do not use PDB files or TMF files. Instead, they use the information in Managed Object Format (MOF) files to format trace events. These tools cannot format trace messages.