Linked Questions

2 votes
0 answers

Finding and interpreting errors [duplicate]

This sounds like a fairly trivial question, but I can't think of any way to solve it. I am doing an extensive parameter sampling where a set of ODEs is used together with ...
Sos's user avatar
  • 2,168
602 votes
19 answers

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 ...
139 votes
8 answers

Can one identify the design patterns of Mathematica?

... or are they unnecessary in such a high-level language? I've been thinking about programming style, coding standards and the like quite a bit lately, the result of my current work on a mixed .Net/...
Verbeia's user avatar
  • 34.3k
44 votes
6 answers

Mathematica Destructuring

Context I'm writing a function that look something like: ...
user avatar
27 votes
5 answers

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.3k
14 votes
2 answers

How to find out where an error occurs?

I got this error when using Mathematica: ...
Alex's user avatar
  • 345
9 votes
3 answers

Detect Messages within an expression without losing the return value?

I know that Check[expr,failexpr] is a mechanism to catch messages. The problem with it is that if a message is generated within ...
a06e's user avatar
  • 11.4k
12 votes
2 answers

What is the simplest way to determine which call to a superfunction has generated a Message?

I have a complicated function which contains many calls to NIntegrate, NSolve, FindRoot and ...
Alexey Popkov's user avatar
3 votes
2 answers

How to get the error information after run a wrong expression

If we run this code: FindCycle[1, 2, 3, 4, 5] It will give a error information like: How to get the error info promption of ...
yode's user avatar
  • 26.8k
4 votes
1 answer

Exception/Error handling using returns codes

There is good explanation available for error handling on this and similar links. Here there is information on handling inappropriate input arguments and handling unprocessed functions using ...
Pankaj Sejwal's user avatar
10 votes
1 answer

Is it possible to use the global definition of a symbol as part of its new local definition set in a Block?

Consider the following expression: Block[{Print = CopyToClipboard}, doSomething[]] Now all calls to Print from ...
Vladimir Reshetnikov's user avatar
5 votes
1 answer

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
4 votes
0 answers

How can you link Parallel Mapping and Error tracking

Following this question and the comments made, together with the information in this question, the following code allows error tracking and debugging very nicely. ...
Sos's user avatar
  • 2,168
3 votes
0 answers

Capturing error message information

Error messages returned from SendMessage occasionally have useful information in them. For example: ...
bobthechemist's user avatar
4 votes
1 answer

Show error messages from collapsed sections

I've got a fairly long notebook. I like to have most of the sections collapsed. If I evaluate the entire notebook I don't see errors in the collapsed sections unless I expand them. I did see that I ...
Mitchell Kaplan's user avatar

15 30 50 per page