Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Trace an evaluation with an interface that allows interactive debugging
evaluates expr in an interactive interface where each step of the evaluation can be inspected.
sets patt as a breakpoint for entering subsessions.
Retrieve the ResourceFunction:
Trace an evaluation and stop whenever addition occurs:
The buttons at the top of the window perform the following actions:
■ Return: Finish the evaluation with no further interruptions and return the result.
■ Continue: Resume evaluation until the next breakpoint is encountered.
■ Next: Proceed to the next expression in the trace.
■ Step: Same as “Next”, except includes atomic expressions.
Additional breakpoints can be added during evaluation by clicking the "+" button to the right of the breakpoints:
To remove breakpoints, just click them in the list.
Now clicking "Continue" will stop on multiplication as well:
The "Return" button will complete the evaluation with no further interruptions:
The colored numbers on the left of each cell correspond to the current trace level of the evaluation:
Use the current notebook instead of creating a new one:
Automatically close the trace notebook when evaluation is complete (result is returned to the current notebook):
Enter a subsession when an error occurs to investigate the current Stack:
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License