TraceOn

TraceOn

is an option for Trace and related functions which specifies when tracing should be switched on.

Details

  • With the setting TraceOn->patt, Trace and related functions do not start tracing until they encounter expressions to evaluate which match the pattern patt. This pattern is also tested against tags associated with the evaluation.
  • TraceOff can be used within tracing switched on by TraceOn.
  • Once tracing has been switched off by TraceOff, however, TraceOn will not switch it on again.
  • During the execution of Trace, the settings for TraceOn and TraceOff can be modified by resetting the values of the global variables $TraceOn and $TraceOff.

Examples

Basic Examples  (1)

Trace evaluation of an expression that evaluates a function g:

Trace only evaluation inside of g:

Wolfram Research (1991), TraceOn, Wolfram Language function, https://reference.wolfram.com/language/ref/TraceOn.html.

Text

Wolfram Research (1991), TraceOn, Wolfram Language function, https://reference.wolfram.com/language/ref/TraceOn.html.

CMS

Wolfram Language. 1991. "TraceOn." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TraceOn.html.

APA

Wolfram Language. (1991). TraceOn. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TraceOn.html

BibTeX

@misc{reference.wolfram_2024_traceon, author="Wolfram Research", title="{TraceOn}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/TraceOn.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_traceon, organization={Wolfram Research}, title={TraceOn}, year={1991}, url={https://reference.wolfram.com/language/ref/TraceOn.html}, note=[Accessed: 21-November-2024 ]}