Trace
Trace[expr]
traces the evaluation of expr
.
Attributes[Trace] := {HoldAll, Protected}
Simple examples
In[1]:= Trace[1 + 2]
Out[1]= {1 + 2, 3}
In[2]:= Trace[(1 + 3) + 2]
Out[2]= {{1 + 3, 4}, 4 + 2, 6}
In[3]:= Trace[2 + (1 + 3)]
Out[3]= {{1 + 3, 4}, 2 + 4, 6}