BUILT-IN WOLFRAM LANGUAGE SYMBOL

TraceOff

TraceOff
is an option for Trace and related functions which specifies forms inside which tracing should be switched off.

DetailsDetails

  • The setting for TraceOff gives a pattern which is compared with expressions to be evaluated. If the pattern matches the expression, then tracing will be switched off while that expression is being evaluated. The pattern is also tested against tags associated with the evaluation.
  • You can use TraceOff to avoid tracing inner parts of a computation.
  • The default setting TraceOff->None never switches off tracing.
  • TraceOn will not work inside TraceOff.
  • During the execution of Trace, the settings for TraceOn and TraceOff can be modified by resetting the values of the global variables and .

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Trace evaluation of an expression that evaluates a function g:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Omit evaluations required to get the values of g:

In[3]:=
Click for copyable input
Out[3]=
Introduced in 1991
(2.0)