home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!unipalm!uknet!gdt!aber!aberfa!pcg
- From: pcg@aber.ac.uk (Piercarlo Grandi)
- Newsgroups: comp.arch
- Subject: Re: Why would you like a debugger (Was: What would you like in a debugger?
- Message-ID: <PCG.92Aug12192122@aberdb.aber.ac.uk>
- Date: 12 Aug 92 19:21:22 GMT
- References: <1992Aug7.151937.14321@linus.mitre.org> <341@moene.indiv.nluug.nl>
- <19920809.175600.935@almaden.ibm.com> <1241@esl.ESL.COM>
- Sender: news@aber.ac.uk (USENET news service)
- Reply-To: pcg@aber.ac.uk (Piercarlo Grandi)
- Organization: Coleg Prifysgol Cymru
- Lines: 28
- In-Reply-To: davida@barney.esl.com's message of 12 Aug 92 01: 25:36 GMT
- Nntp-Posting-Host: aberdb
-
- On 12 Aug 92 01:25:36 GMT, davida@barney.esl.com (David Alexander) said:
-
- davida> Somewhere in the midst of my 10000 lines of WEB code I was
- davida> following a pointer incorrectly and spent a week banging my head
- davida> against the wall trying to track down this one bug. Then we had
- davida> our weekly meeting, and as we're talking, Prof. Knuth is
- davida> flipping through my WEB source which he had never been shown
- davida> before, and about 40 pages into the listing, in the middle of
- davida> our discussion, he says, "By the way, here's your NIL pointer
- davida> error..." [ ... ] Not everyone can be Donald Knuth.
-
- Well, maybe not in other ways, but in this way *everyone* can be like
- him. If one writes programs knowing what they do, instead of trying to
- see if they are going to work, it becomes very easy to debug like this.
-
- If you know, or can easily discern, the flow of predicates of your
- program, it takes only a very small deductive ability to trace back from
- symptom to the predicate that has been violated.
-
-
- On the other hands debuggers are invaluable, because the method above
- fails when there are bugs in the supporting environment (preprocessor,
- include files, compiler, libraries, OS, etc...). Such debuggers almost
- by necessity must be assembler level debuggers.
- --
- Piercarlo Grandi | JNET: pcg@uk.ac.aber
- Dept of CS, University of Wales | UUCP: ...!mcsun!ukc!aber-cs!pcg
- Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg@aber.ac.uk
-