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

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

TraceDepth

FilledSmallSquare TraceDepth is an option for Trace and related functions which specifies the maximum nesting of evaluation chains that are to be included.

FilledSmallSquare Setting TraceDepth -> n keeps only parts down to level n in nested lists generated by Trace.

FilledSmallSquare By setting TraceDepth, you can make Trace and related functions skip over "inner" parts of a computation, making their operation more efficient.

FilledSmallSquare See Section 2.6.11.

FilledSmallSquare See also: TraceOff.

FilledSmallSquare New in Version 2.

Further Examples