Linked Questions

602 votes
19 answers
156k views

Where can I find examples of good Mathematica programming practice?

I consider myself a pretty good Mathematica programmer, but I'm always looking out for ways to either improve my way of doing things in Mathematica, or to see if there's something nifty that I haven't ...
62 votes
2 answers
4k 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 ...
Helium's user avatar
  • 4,049
32 votes
5 answers
2k views

Resource management in Mathematica

I am using a library that has functions like createSomeObject[] and deleteSomeObject[obj]. It is an interface to a C language ...
Szabolcs's user avatar
  • 234k
30 votes
2 answers
733 views

How to use Handler functions?

It seems that Internal`AddHandler or other functions related to it can be quite helpful sometimes, especially when dealing with messages and such. But the ...
Wjx's user avatar
  • 9,558
27 votes
5 answers
3k views

How to catch complete error message information, including the message text as it would be printed?

If I evaluate this expression: Module[{}, 1/0;0^0]; msg = $MessageList I get: ...
Murta's user avatar
  • 26.2k
14 votes
1 answer
404 views

Check does not interrupt evaluation of the expression when a Message is emitted

On the surface, Check looks like a good method to use when you need to abort the evaluation of an expression whenever a Message ...
rcollyer's user avatar
  • 33.9k
13 votes
2 answers
4k views

How to switch off all messages?

How can I want to switch off all messages in a Mathematica session? Quiet[expr] allows me to evaluate expr without messages. <...
a06e's user avatar
  • 11.3k
11 votes
2 answers
1k views

Avoiding an unresponsive user interface in OS X

I have found that despite Mathematica's numerous updates, each of which have added much functionality, one fundamental issue remains unaddressed: The unresponsiveness of the UI when I make a mistake (...
Guillochon's user avatar
  • 6,117
9 votes
1 answer
1k views

Debugging a $RecursionLimit error?

I sometimes encounter bugs that involve a recursion limit. It's often very hard to find the origin of the problem. Would there be a way to copy the stack somewhere and abort the evaluation in order ...
faysou's user avatar
  • 11k
7 votes
1 answer
248 views

Local logfiles for remote kernels

I'd like remote slave kernels to produce log files on my local machine, subject to the following constraints: 1) I don't want to install a distributed filesystem or do other administrative work on ...
Tobias Hagge's user avatar
  • 1,372
6 votes
1 answer
101 views

How to make Mathematica only output the error name, rather than the full error message?

For example, when I use LinearSolve, an error message might be encountered: ...
Αλέξανδρος Ζεγγ's user avatar
6 votes
2 answers
523 views

How to choose variables from a list for a function and then use the solution in a subsequent function?

I am trying to calculate heating degree days and cooling degree days and output that information to a table. I am using mathematica's curated data to do this. In text this is what I would like to do....
mLucasDen's user avatar
5 votes
2 answers
2k views

Detecting changes of variables' values

Is it possible to detect (and create a trigger for) an event when any of the variables defined in the notebook changes its value (for any reason)? I need to know which variable got changed and what ...
verse's user avatar
  • 1,287
5 votes
1 answer
1k views

Interrupting package evaluation, handling error

I have some packages/scripts that I schedule the execution using Jobs in SQL server. For example, in some of then, I use to create reports and delivery by mail using Mathematica. All done using ...
Murta's user avatar
  • 26.2k
5 votes
1 answer
267 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 ...
faysou's user avatar
  • 11k

15 30 50 per page