MathGroup Archive 2005

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

Search the Archive

Re: Debugging

  • To: mathgroup at smc.vnet.net
  • Subject: [mg56941] Re: [mg56909] Debugging
  • From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
  • Date: Wed, 11 May 2005 05:23:56 -0400 (EDT)
  • References: <200505100742.DAA08274@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

You could try something like:

$MessagePrePrint = (Print[ToString[$MessageList] <>
           "\n" <> "Error -> Quit"]; Quit[]) &;

It's not perfect but does give you some indication of what went wrong.

Andrzej Kozlowski



On 10 May 2005, at 16:42, Hermann Schmitt wrote:

> Hello,
> I want to extend my question:
> Can the program in $MessagePrePrint access the error message? What 
> other
> information can the program access?
> I think someone of Wolfram Research should answer this question!!
> Hermann Schmitt
> ----- Original Message -----
> From: "Hermann Schmitt" <schmitther at t-online.de>
To: mathgroup at smc.vnet.net
> Subject: [mg56941] [mg56909] Debugging
>
>
>> Hello,
>> In earlier emails I explained, that the program is finished at the 
>> statement
>> in error, if the following assignmet is included in the program:
>>  $MessagePrePrint = (Print["Error -> Quit"]; Quit[])&;
>> My question is:
>> Can it be achieved, that the error message is printed, before the 
>> program
>> finishes?
>> Hermann Schmitt
>>
>
>


  • References:
    • Debugging
      • From: "Hermann Schmitt" <schmitther@t-online.de>
  • Prev by Date: ChineseRemainder
  • Next by Date: Re: Partitioning a list from an index
  • Previous by thread: Re: Debugging
  • Next by thread: Converting result to ASCII-art