Bewerken

Delen via


Creating a Trace Session with a PDB File

The easiest way to specify a trace provider is to locate the PDB symbol file for the source code that includes the trace provider. TraceView can extract all of the information that it needs for the trace session from the PDB file.

To create a trace session with a PDB file

  1. Start TraceView.

  2. On the File menu, click Create New Log Session.

  3. Click Add Provider.

  4. Click PDB (Debug Information) File, and then type the path to the PDB symbol file for the trace provider; or, click the ellipsis button (...) and navigate to the file.

  5. To add additional providers, click Add Provider. This step is optional.

  6. Click Next.

  7. Select flags and a level, if desired.

  8. Set basic trace session options, if desired.

  9. Set advanced trace session options, if desired.

  10. Click Finish.

Comments

If the PDB file that you specify does not include the required tracing elements, TraceView displays the "Cannot find PDB file" error message.

If you use TraceView to open a PDB file on a computer running Windows Server 2003, TraceView automatically exits.