home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / arch / 8918 < prev    next >
Encoding:
Text File  |  1992-08-15  |  1.4 KB  |  27 lines

  1. Newsgroups: comp.arch
  2. Path: sparky!uunet!psinntp!ficc!peter
  3. From: peter@ferranti.com (peter da silva)
  4. Subject: Re: Why would you like a debugger (Was: What would you like in a debugger?
  5. Message-ID: <id.BVDS.EPB@ferranti.com>
  6. Reply-To: peter@ferranti.com (Peter da Silva)
  7. Organization: Xenix Support, FICC
  8. References: <19920809.175600.935@almaden.ibm.com> <343@moene.indiv.nluug.nl> <id.8J9S.1P4@ferranti.com> <1992Aug13.144226.8391@yrloc.ipsa.reuter.COM>
  9. Date: Sat, 15 Aug 1992 19:32:50 GMT
  10. Lines: 15
  11.  
  12. In article <1992Aug13.144226.8391@yrloc.ipsa.reuter.COM> rbe@yrloc.ipsa.reuter.COM (Robert Bernecky) writes:
  13. > Ah, perhaps I'm missing something here, but I personally do NOT like
  14. > the idea of modifying ANY code in order to debug it. That is, insertion
  15. > of printfs is harmful to maintainability. 
  16.  
  17. It can be. I've had my share of heisenbugs. But I've had about as many "cured"
  18. by running them under the debugger, or by linking with a debugging version of
  19. malloc. A good interpreter/compiler would allow you to make changes in a local
  20. copy, avoiding the telephone problem. Plus, if you use a "DEBUG_PRINTF" macro
  21. they're easy to find...
  22. -- 
  23. Peter da Silva                                               `-_-'
  24. $ EDIT/TECO LOVE                                              'U` 
  25. %TECO-W-OLDJOKE Not war?                        Have you hugged your wolf today?
  26. Ferranti Intl. Ctls. Corp.      Sugar Land, TX  77487-5012       +1 713 274 5180
  27.