next up previous contents
Next: Trapping Errors Up: Programming Tools and Functions Previous: Specify Unevaluated

Trace

Calling Sequence:
trace(prc)
option trace
Parameters:
prc : procedure

Returns: void

Synopsis: When applied to procedures, the trace command directs Darwin to display the result of every executed statement accompanied with the value of the parameters at the entry point to the routine and the value being returned.

The option trace combination can be specified inside of a procedure declaration. It must follow any local and global variable declarations after the routine declaration.

Examples:

> x := proc()
>   option trace;
> end:

> trace(LocalAlign);




Gaston Gonnet
1998-09-15