While you are testing a program or after you have finished a test, you can open a Trace Log window to view the collected trace entries. You can use these trace entries to view a historical record of your test.
Note: | No trace entries are collected unless Trace All or Tracepoints Only is selected from the Trace menu. |
Assume you want to display only certain types of trace entries that have been collected. On the Test Monitor window:
The Trace Log window is displayed.
Even though the portion of the program that you tested was small, the Trace Log window displays several trace entries. You can reduce the number of trace entries by setting trace filters.
There are several different trace filters. Each trace filter allows only one type of trace entry to pass through.
Assume that you want to see only those trace entries where transfer of control has taken place. Also, you want to see the statements that caused the transfers of control. On the Trace Log window:
The Trace Entry Filters window is displayed.
On the Trace Entry Filters window, you select the trace filters you want to apply to the Trace Log.
Figure 69. Trace Entry Filters
On the Trace Entry Filters window:
After you change the trace filters, you need to refresh the contents of the Trace Log window to display only the trace entries that apply to the selected trace filters.
The refreshed Trace Log window shows only the trace entries that passed through the selected trace filters. This amount of information is easier to view and understand than all the trace entries displayed at once.
You can select trace entries in the Trace Log window and use the selections in the Edit menu to copy selected information onto the clipboard.
The complete trace log is still available and can be viewed by selecting other filters. You do not have to rerun the test to recreate the trace log.
When you are finished viewing the Trace Log window: