Questions about debugging techniques, using the built-in debugger, and/or the Wolfram Workbench debugger.
10
votes
0answers
220 views
How can I trace a functional expression's evaluation visually?
Ok, so the goal is to visualize the execution of this expression
foo /@ {3 + 1, bar /@ {1 + 2, {4 + 7}}}
in the following fashion using nested rectangles with ...
8
votes
0answers
72 views
How does the built-in debugger decide what to highlight?
How does the built-in debugger decide which definition to highlight in the notebook when Break on messages" is enabled?
Here's an example to illustrate what I mean. First, enable the debugger ...
3
votes
0answers
88 views
Dealing with errors and resuming the code after one
How can I write my Mathematica code so that it resumes at a specific place if any Message is displayed during the execution of an expression? For example, in Visual ...
3
votes
0answers
193 views
Catching and debugging numerical errors in compiled functions
I have a compiled function (that was created using the second method of this question). Basically it's using a compiled closure. The problem is that for some parameter values it does not evaluate. ...