TraceOriginal

TraceOriginal

is an option for Trace and related functions which specifies whether to test the form of each expression before its head and arguments are evaluated.

Details

  • With the default TraceOriginal->False, the forms of expressions generated during an evaluation are tested only after their head and arguments have been evaluated. In addition, evaluation chains for expressions which do not change under evaluation are not included.
  • With TraceOriginal->True, the forms before evaluation of the head and arguments are also tested, and evaluation chains for expressions which do not change under evaluation are included.

Examples

Basic Examples  (1)

Trace evaluation of an expression showing evaluation chains for expressions that change:

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

Show evaluation chains even for expressions that do not change:

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

See Also

Trace

Tutorials

Introduced in 1991
(2.0)