Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Tuning & Debugging > Symbolic Execution History > TracePrint >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF