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