Re: Programming

*To*: mathgroup at smc.vnet.net*Subject*: [mg56586] Re: Programming*From*: carlos at colorado.edu*Date*: Fri, 29 Apr 2005 03:21:35 -0400 (EDT)*References*: <d4q12e$o9p$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Hermann Schmitt wrote: > Hello, > if a Mathemamtica program is executed, Mathematica separates in the output > the text of the program from the error messages. > The conseqence is, that sometimes it is difficult, to find the statement, > which belongs to an error message. > Is it possible to suppress this separation? > Or is there any method, which helps to find the statement which belongs to > an error message? > Hermann Schmitt That is actually the biggest complaint I get, year after year, from students once they learn to program Modules to build nontrivial programs. Their question is typically: where is the line number? I tell them there is no number. In[] and Out[] are useless in a modularized program since they change with each invokation. The smarter ones ask: where is the debugger? I tell them there is no easy to use debugger. A front end pointer (or color marker) to where the error occurs in the source should not be too difficult - and would be greatly appreciated by beginning (and expert) users.