This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / Debugging /

TraceOn

FilledSmallSquare TraceOn is an option for Trace and related functions which specifies when tracing should be switched on.

FilledSmallSquare With the setting TraceOn -> patt, Trace and related functions do not start tracing until they encounter expressions to evaluate which match the pattern patt. This pattern is also tested against tags associated with the evaluation.

FilledSmallSquare TraceOff can be used within tracing switched on by TraceOn.

FilledSmallSquare Once tracing has been switched off by TraceOff, however, TraceOn will not switch it on again.

FilledSmallSquare During the execution of Trace, the settings for TraceOn and TraceOff can be modified by resetting the values of the global variables $TraceOn and $TraceOff.

FilledSmallSquare See Section 2.6.11.

FilledSmallSquare See also: TraceOff.

FilledSmallSquare New in Version 2.

Further Examples