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


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

- Setting TraceDepth->n keeps only parts down to level n in nested lists generated by Trace.
- By setting TraceDepth, you can make Trace and related functions skip over "inner" parts of a computation, making their operation more efficient.
Tech Notes
History
Introduced in 1991 (2.0)
Text
Wolfram Research (1991), TraceDepth, Wolfram Language function, https://reference.wolfram.com/language/ref/TraceDepth.html.
CMS
Wolfram Language. 1991. "TraceDepth." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TraceDepth.html.
APA
Wolfram Language. (1991). TraceDepth. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TraceDepth.html
BibTeX
@misc{reference.wolfram_2025_tracedepth, author="Wolfram Research", title="{TraceDepth}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/TraceDepth.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_tracedepth, organization={Wolfram Research}, title={TraceDepth}, year={1991}, url={https://reference.wolfram.com/language/ref/TraceDepth.html}, note=[Accessed: 11-August-2025]}