Share via


Opening the Defect Log

Use a PREfast View command to open the Defect Log. If you are using OACR, use the oacr view command to open the viewer on the log files that are managed by OACR.

You can open the PREfast for Drivers Defect Log for an analysis as soon as the analysis is complete. The Defect Log remains available for viewing until you delete it or overwrite it by running PREfast for Drivers again.

To open the Defect Log:

In a build environment window, navigate to the directory in which you ran a PREfast for Drivers analysis, and then type:

prefast view

PREfast for Drivers opens the Defect Log and displays the Message List, as shown in the following screen shot.

Screen shot showing the PREfast Defect Log dialog box

To open the Defect Log in an alternate location:

You can also use other forms of the PREfast View command to open the Defect Log. For example, if you used the /log parameter in a PREfast Build command to specify an alternate location for the Defect Log, you must use the /log parameter in a prefast view command to open the Defect Log

For example, to find the ExamplesLog.xml file in the \tools\pfd\samples subdirectory of the WDK, type:

prefast /log=d:\winddk\tools\pfd\samples\ExamplesLog.xml view

Comments

If there is no Defect Log file in the default location when you type prefast view, or in the specified location when you type **prefast \log=**LogFile view, PREfast for Drivers opens a blank Defect Log. The Defect Log must have an .xml file name extension. The default location of the Defects.xml file is %APPDATA%\Microsoft\PFD.

For Windows Vista, the %APPDATA% variable becomes <drive>:\Users\<user>\Application Data.

For Windows XP or Windows Server 2003 the %APPDATA% variable becomes <drive>:\Documents and Settings\<user>\Application Data.

You can display the contents of the Defect Log at the command line. For instructions, see Displaying the Defect Log at the Command Line.

 

 

Send comments about this topic to Microsoft

Build date: 5/3/2011