Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: debugging

  • To: mathgroup at smc.vnet.net
  • Subject: [mg56694] Re: [mg56676] debugging
  • From: "Hermann Schmitt" <schmitther at t-online.de>
  • Date: Wed, 4 May 2005 00:33:01 -0400 (EDT)
  • References: <200505030926.FAA25668@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,
I wrote an OO System for Mathematica. The program has 900 lines. I had the
same problem as you, but now I found out the following:
If the following statement is executed:
$MessagePrePrint = (Print["Error -> Quit"]; Quit[])&;
the program is finished, when the error message is prepared. Otherwise the
program does not finish and it is difficult to find the statement in error.
If the program has no output, you have to insert Print statements, to see,
what was executed and what was not executed.

----- Original Message -----
From: "Daniel Roy" <droy at mit.edu>
To: mathgroup at smc.vnet.net
Subject: [mg56694] [mg56676] debugging


>
> My question concerns debugging.  I've done googling to find a quick
> answer but have failed.  I'm developming large functions and without
> line numbers telling me where the errors occurred, its becoming very
> difficult to develop code quickly.  Can anyone point me in the right
> direction in terms of debugging multi line  (at least 50+ lines)
> functions?
>
> thanks,
> dan
>


  • References:
  • Prev by Date: Re: Re: Summation problem
  • Next by Date: changing algorithm, finding residuals w/FindFit
  • Previous by thread: Re: debugging
  • Next by thread: Re: Re: debugging