TraceBackward
✖
TraceBackward
is an option for Trace and related functions that specifies whether to include preceding expressions on the evaluation chain that contains the pattern form sought.
Details

- TraceBackward->True includes the first expression on the evaluation chain that contains form.
- TraceBackward->All includes all expressions before form on the evaluation chain that contains form.
- TraceBackward allows you to see the previous forms that an expression had during an evaluation.
Examples
Basic Examples (1)Summary of the most common use cases
A recursive definition for finding Fibonacci numbers:

https://wolfram.com/xid/09bnm0joy-bjc302
Show only what additions of positive integers are required:

https://wolfram.com/xid/09bnm0joy-go0q0y

Show the beginning of the evaluation chain that leads to each addition:

https://wolfram.com/xid/09bnm0joy-f05ioc

Show all intermediate evaluations that led to each addition:

https://wolfram.com/xid/09bnm0joy-bdror8

Wolfram Research (1991), TraceBackward, Wolfram Language function, https://reference.wolfram.com/language/ref/TraceBackward.html.
Text
Wolfram Research (1991), TraceBackward, Wolfram Language function, https://reference.wolfram.com/language/ref/TraceBackward.html.
Wolfram Research (1991), TraceBackward, Wolfram Language function, https://reference.wolfram.com/language/ref/TraceBackward.html.
CMS
Wolfram Language. 1991. "TraceBackward." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TraceBackward.html.
Wolfram Language. 1991. "TraceBackward." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TraceBackward.html.
APA
Wolfram Language. (1991). TraceBackward. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TraceBackward.html
Wolfram Language. (1991). TraceBackward. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TraceBackward.html
BibTeX
@misc{reference.wolfram_2025_tracebackward, author="Wolfram Research", title="{TraceBackward}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/TraceBackward.html}", note=[Accessed: 19-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_tracebackward, organization={Wolfram Research}, title={TraceBackward}, year={1991}, url={https://reference.wolfram.com/language/ref/TraceBackward.html}, note=[Accessed: 19-April-2025
]}