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

TracePrint

TracePrint[expr]
prints all expressions used in the evaluation of expr.
TracePrint
includes only those expressions which match form.
TracePrint
includes all evaluations which use transformation rules associated with the symbol s.
  • TracePrint indents its output in correspondence with the nesting levels for lists generated by Trace.
  • The indentation is done using the print form defined for the object Indent[d].
  • TracePrint prints the forms of expressions before any of their elements are evaluated.
  • TracePrint[expr] returns the result of evaluating expr.
Print all expressions used in evaluation of an expression:
A recursive definition for finding Fibonacci numbers:
Show all additions of positive integers:
Print all expressions used in evaluation of an expression:
In[1]:=
Click for copyable input
Out[1]=
 
A recursive definition for finding Fibonacci numbers:
In[1]:=
Click for copyable input
Show all additions of positive integers:
In[2]:=
Click for copyable input
Out[2]=
New in 2