In This Book

Using the trace Command

The following example shows the result of invoking default tracing on the sample program average :

trace

3

go

 

Trace at: \\average\print_average\25

Trace at: \\average\print_average\30

Trace at: \\average\sum\12

.

.

.

Trace at: \\average\print_average\35

Break at: \\average\main\46

Trace at: \\average\main\46

In addition, you can use the trace command to:

Display only selected statements, instructions, routine entry points, and routine exit points as they execute

Stop execution following each trace event

Suppress the display of trace locations

Execute a command list after each trace event

See the online command reference for more information on the trace command and its options.

Using Monitors (Breakpoints, Watchpoints, Traces, and Intercepts) 3-17