Linked Questions

2
votes
0answers
86 views

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 ...
526
votes
19answers
130k 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 ...
128
votes
8answers
7k views

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/...
37
votes
6answers
2k views

Mathematica Destructuring

Context I'm writing a function that look something like: ...
22
votes
5answers
2k 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: ...
14
votes
2answers
1k views

How to find out where an error occurs?

I got this error when using Mathematica: ...
3
votes
2answers
260 views

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 ...
10
votes
2answers
223 views

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 ...
9
votes
2answers
165 views

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 ...
4
votes
1answer
1k views

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 ...
10
votes
1answer
161 views

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 ...
5
votes
1answer
211 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 ...
4
votes
0answers
201 views

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. ...
2
votes
0answers
181 views

Capturing error message information

Error messages returned from SendMessage occasionally have useful information in them. For example: ...
4
votes
1answer
96 views

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 ...

15 30 50 per page