Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Stop on message?

  • To: mathgroup at
  • Subject: [mg126651] Re: Stop on message?
  • From: Ralph Dratman <ralph.dratman at>
  • Date: Tue, 29 May 2012 05:45:06 -0400 (EDT)
  • Delivered-to:
  • References: <>

Thank you, Szabolcs. That is most helpful.

This feature should be readily available to all Mathematica users.
Moreover, it should be the default behavior.

Here we have a good example of a very simple change that could
significantly smooth the road for new users.

I often think is a real pity, and largely unnecessary, that
Mathematica has to be so hard for newcomers to master. Certainly the
concepts and vocabulary of Mathematica's unique language are likely to
remain a challenge, but there is no reason to make the tyro's life
even more difficult by having the program freeze up just when she is
beginning to make progress.


On Mon, May 28, 2012 at 10:43 AM, Szabolcs Horv=E1t <szhorvat at> wrote:
> There were two replies suggesting to use Check[] to abort evaluation when a
> message is generated.
> Note that while Check does return a different result if a message was
> generated, it does not actually interrupt evaluation (it completed the
> evaluation of 'expr').
> See here for an example:
> Please see here for a method that will reliably abort immediately when a
> message is generated.
> On 2012.05.27. 10:40, Sseziwa Mukasa wrote:
>> Check[expr,Return[]]
>> On May 26, 2012, at 5:11 AM, Ralph Dratman<ralph.dratman at>
>>  wrote:
>>> Hi,
>>> Is there a simple way to get Mathematica to stop evaluating (like
>>> Interrupt) whenever a message is issued?
>>> I realize the debugger has that feature, but I would prefer not to use
>>> it in this case.
>>> Thank you.
>>> Ralph Dratman
> --
> Szabolcs Horv=E1t
> Visit Mathematica.SE:

  • Prev by Date: Simplify and then discretize a set of equations with derivatives and integrals
  • Next by Date: Re: GraphPath With Edge Weights
  • Previous by thread: Re: Stop on message?
  • Next by thread: Re: Stop on message?