comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert I. Eachus" <rieachus@attbi.com>
Subject: Re: Debugger Rant (was Re: How to debug an Ada program)
Date: Fri, 11 Jul 2003 18:42:31 GMT
Date: 2003-07-11T18:42:31+00:00	[thread overview]
Message-ID: <3F0F04F1.7080903@attbi.com> (raw)
In-Reply-To: 3F0ED3FF.65497AEE@raytheon.com

Jerry Petrey wrote:

> I certainly agree with you Marc.  While a debugger may not be needed as much in
> Ada (and certainly not as much for the simpler problems) as in other languages, it
> is an indispensable tool in complex Ada applications, especially in the real-time,
> embedded world.

Shurg!  I guess I have internalized a style of programming once known as 
  "Design to test."  In other words, all (formal) requirements are 
testable, and you design and code from day one to make passing those 
tests as easy as possible.

I was recently working on a bug in Ada.Text_IO.Editing in GNAT.  I 
didn't use a debugger, and couldn't imagine the pain of trying to.  The 
issue of course, was that any changes to make "#*#" recognized as 
invalid had to leave the behavior on hundreds of test cases unchanged. 
I needed automated testing that did not depend on the debugger.  (In 
fact several times I got fixes bounced because I wasn't using as many 
test cases as ACT.)

Even if you want to consider Ada.Text_IO.Editing as separate from GNAT, 
and Ada.Text_IO, it has about 3000 lines including two parsers...

-- 

                                                        Robert I. Eachus

�In an ally, considerations of house, clan, planet, race are 
insignificant beside two prime questions, which are: 1. Can he shoot? 2. 
Will he aim at your enemy?� -- from the Laiden novels by Sharon Lee and 
Steve Miller.




  reply	other threads:[~2003-07-11 18:42 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-09  4:42 How to debug an Ada program mauricio
2003-07-09  7:30 ` Preben Randhol
2003-07-09 16:07 ` Pascal Obry
2003-07-09 17:16   ` Cephus�
2003-07-09 21:28     ` Robert I. Eachus
2003-07-10  3:37       ` Cephus�
2003-07-10  5:05         ` Robert I. Eachus
2003-07-10  7:25   ` Preben Randhol
2003-07-10 22:49     ` mauricio
2003-07-15  1:20     ` Richard Riehle
2003-07-15  4:22       ` James Rogers
2003-07-15 12:09       ` Marin David Condic
2003-07-11 13:05   ` Debugger Rant (was Re: How to debug an Ada program) Marc A. Criley
2003-07-11 13:26     ` Preben Randhol
2003-07-11 14:36       ` Dmitry A. Kazakov
2003-07-11 15:13     ` Jerry Petrey
2003-07-11 18:42       ` Robert I. Eachus [this message]
2003-07-12  2:26         ` Alexander Kopilovitch
2003-07-15 23:33           ` Robert I. Eachus
2003-07-11 19:36     ` Wesley Groleau
2003-07-11 20:33       ` Preben Randhol
2003-07-11 21:26         ` Wesley Groleau
2003-07-12  7:07     ` Brian Catlin
2003-07-15 23:34       ` Robert I. Eachus
2003-07-16 19:24         ` Debugger Rant Marc A. Criley
2003-07-17  2:21           ` Alexander Kopilovitch
2003-07-18 19:52             ` Robert I. Eachus
2003-07-19  9:51               ` Pascal Obry
2003-07-17 16:33           ` Wesley Groleau
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox