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

  1. Path: sparky!uunet!mcsun!uknet!edcastle!aiai!richard
  2. From: richard@aiai.ed.ac.uk (Richard Tobin)
  3. Newsgroups: comp.programming
  4. Subject: Re: When should a debugger be used?
  5. Message-ID: <7250@skye.ed.ac.uk>
  6. Date: 20 Aug 92 12:32:36 GMT
  7. References: <j1ymvg=.pdh@netcom.com> <164c9vINNijk@agate.berkeley.edu> <6453@fury.BOEING.COM>
  8. Organization: AIAI, University of Edinburgh, Scotland
  9. Lines: 18
  10.  
  11. In article <6453@fury.BOEING.COM> cek@sdc.boeing.com (Conrad Kimball) writes:
  12. >And what do you do when the problem goes away when you add the fprintf()?
  13.  
  14. And what do you do when the problem goes away when you compile with -g?
  15.  
  16. (I'm not really suggesting printf()s are better than a debugger, but there
  17. are occasions where they're useful.)
  18.  
  19. Incidentally, in the few cases I've had where adding a printf() made
  20. the problem go away, that's usually been enough to let me quickly find
  21. the problem, because it's fairly strong evidence that it's a malloc()
  22. related problem.
  23.  
  24. -- Richard
  25. -- 
  26. Richard Tobin,
  27. AI Applications Institute,                                R.Tobin@ed.ac.uk
  28. Edinburgh University.
  29.