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

Documentation / Mathematica / Built-in Functions / Programming / Debugging /

TraceScan

FilledSmallSquare TraceScan[f, expr] applies f to all expressions used in the evaluation of expr.

FilledSmallSquare TraceScan[f, expr, form] includes only those expressions which match form.

FilledSmallSquare TraceScan[f, expr, s] includes all evaluations which use transformation rules associated with the symbol s.

FilledSmallSquare TraceScan[f, expr, form, fp] applies f before evaluation and fp after evaluation to expressions used in the evaluation of expr.

FilledSmallSquare See notes for Trace.

FilledSmallSquare All expressions are wrapped in HoldForm to prevent evaluation before f or fp are applied to them.

FilledSmallSquare The function fp is given as arguments both the form before evaluation and the form after evaluation.

FilledSmallSquare TraceScan[f, expr] returns the result of evaluating expr.

FilledSmallSquare See Section 2.6.11.

FilledSmallSquare New in Version 2.