Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Print all expressions used in the evaluation of an expression, along with the results of evaluating those expressions
prints an in/out toggler for expressions that match form.
includes all evaluations that use transformation rules associated with the symbol s.
|"Timing"||set to True to include timing of the traced evaluation|
|"TraceIn"||function to apply to the traced input|
|"TraceOut"||function to apply to the traced input/output pair|
Recursive Fibonacci definition:
Use TracePrintEvaluations to track calls to f. Click the printed values to toggle between inputs and outputs:
See what DateList evaluated to during the following function:
The TracePrintEvaluations trace cell includes the evaluation of the subexpression:
Notice the CellDingbat of the previous result includes a • character. This indicates that the trace cell evaluation information is stored in the result cell:
Using the "Timing"→True option includes evaluation timing information in each trace cell:
Click on any trace cell twice to see the evaluation timing.
Using the "TraceIn"→func option evaluates func[subexpr], where subexpr is the subexpression matching the TracePrintEvaluations pattern, and include the result in the trace cell:
Click any trace cell twice to see the length of the Plus expression.
The option "TraceIndent"→string specifies the indentation to use to reflect the trace level:
Using the "TraceOut"→func option evaluates func[subexpr,eval], where subexpr is the subexpression matching the TracePrintEvaluations pattern and eval is what the subexpression evaluated to, and include the result in the trace cell:
Click any trace cell twice to see a rule indicating what each subexpression evaluated to.
This work is licensed under a Creative Commons Attribution 4.0 International License