09.02.2014 Views

Windows sysinternals

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 7 Process and Diagnostic Utilities 243<br />

shown in Figure 7-14. The Include and Exclude fields are used to set criteria for including or<br />

excluding incoming lines of debug text based on their content. The Highlight group box is<br />

used to color-code selected lines based on their content. Filter and Highlight rules can be<br />

saved to disk and then reloaded at a later time. (Highlighting is discussed in the next section<br />

of this chapter.)<br />

FIGURE 7-14 The DebugView Filter dialog box.<br />

Enter substring expressions in the Include field that match debug output lines that you want<br />

DebugView to display, and enter substring expressions in the Exclude field to specify debug<br />

output lines that you do not want DebugView to display. You can enter multiple expressions,<br />

separating each with a semicolon. Do not include spaces in the filter expression unless you<br />

want the spaces to be part of the filter. Note that the “*” character is interpreted as a wildcard,<br />

and that filters are interpreted in a case-insensitive manner and are also applied to the<br />

Process ID portion of the line if PIDs are included in the output. The default rules include<br />

everything (“*”) and exclude nothing.<br />

As shown in the example in Figure 7-14, say that you want DebugView to display debug<br />

output only if it contains the words “win,” “desk,” or “session,” unless it also contains the<br />

word “error.” Set the Include filter to “win;desk;session” (without the quotes) and the<br />

Exclude filter to “error.” If you want DebugView to show only output that has “MyApp:”<br />

and the word “ severe” following later in the output line, use a wildcard in the Include filter:<br />

“myapp:*severe”.<br />

Filtering is applied only to new lines of debug output as they are captured and to comments<br />

appended with the Append Comment feature. New text lines that match the rules that are<br />

in effect are displayed; those that don’t match are dropped and cannot be “unhidden” by<br />

changing the filter rules after the fact. Also, changing the filter rules does not remove lines<br />

that are already displayed by DebugView.<br />

If any filter rules are in effect when you exit DebugView, DebugView will display them in a<br />

dialog box the next time you start it. Simply click OK to continue using those rules, or change<br />

them first. You can edit them in place, click Load to use a previously saved filter, or click Reset<br />

to remove the filter. To bypass this dialog box and continue to use the rules that were in<br />

effect, add /f to the DebugView command line.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!