home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / arch / 8860 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  2.1 KB

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