Questions about debugging techniques, using the built-in debugger, and/or the Wolfram Workbench debugger.
18
votes
2answers
758 views
Debugging memory leaks
I've written my incredibly complex, incredibly elegant analysis function, that works great on small test data. But when I run it on my real (bigger) data set it keeps running out of memory. It turns ...
18
votes
2answers
563 views
Is it possible to Print expressions in reverse order?
Let's say I'm debugging a program step by step and want to Print some expressions (using ShowIt, for example).
Is there a way to output the result of ...
17
votes
2answers
606 views
Mathematica Debuggability
One of the things that I really dislike about Mathematica is its lack of debuggability compared to many other programming languages. Some of the problems arises from the functional nature of ...
9
votes
1answer
316 views
A debug utility to print or extract intermediate data from a program
Is there a way to print variables using their names, or to extract the corresponding information for later analysis ?
11
votes
5answers
1k views
Wolfram Workbench - Mathematica Development Alternatives
Are there any alternatives (IDE or other workflow) to Wolfram Workbench for development and debugging?
Elaboration: An open source alternative.
21
votes
1answer
273 views
which is better, using Assert[] or manual checks on arguments and other computations?
I never used Asserts in Mathematica, but trying to see what advantage they have over just argument check and additional definitions of the function to capture unwanted input.
For example, which one ...
14
votes
2answers
556 views
Debugging Mathematica Code
In various integrated development environments, such as Microsoft Visual Studio, there is an integrated debugger where you can step through code sections, examine the state of variables and figure out ...
5
votes
1answer
128 views
How to find the name of the current function
I would like to know the name of the current function from within that function. For example, consider the following code
...
5
votes
3answers
482 views
Solution for equation system with piece-wise defined functions
As I could swear this worked just yesterday, I am probably just doing something stupid here and I am sorry to bother you :)
I am trying to find the point where a curve crosses a line. In this case, ...
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 ...