Chapter Contents

Previous

Next
TRACE

TRACE



Sets a tracepoint for tracing the execution of the corresponding statement

Abbreviation: T


Syntax
Details
Examples
See Also

Syntax

TRACE <location <AFTER count <<WHEN clause | DO list>>

location
specifies where to set a tracepoint (at the current line, by default).

_ALL_
sets a tracepoint at every SCL executable program statement.

ENTRY
sets a tracepoint at the first executable statement in every entry in the current catalog that contains an SCL program.

entry-name\
sets a tracepoint in an SCL program.

label
sets a tracepoint at the first executable statement in an SCL reserved label or in a user-defined label.

line-num
sets a tracepoint at the specified line.

AFTER count
is the number of times for the debugger to execute a statement before executing the TRACE command.

WHEN clause
specifies an expression that must be true in order for the command to be executed.

DO list
contains one or more debugger commands to execute. Use semicolons to separate multiple commands.


Details

The TRACE command sets a tracepoint at a specified statement and traces the execution of that statement.

A tracepoint differs from a breakpoint because a tracepoint resumes program execution after temporary suspension. Also, a tracepoint has a higher priority than a breakpoint. If a statement has been specified both as a tracepoint and as a breakpoint, the debugger first prints the trace message and then suspends program execution. Each time the tracepoint statement is encountered, the debugger does the following:


Examples


See Also

BREAK

DELETE

LIST

WATCH


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.