home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!axion!micromuse!exnet!dhd
- From: dhd@exnet.co.uk (Damon)
- Newsgroups: comp.arch
- Subject: Re: Why would you like a debugger (Was: What would you like in a debugger?
- Message-ID: <Bt1Jos.6nA@exnet.co.uk>
- Date: 15 Aug 92 20:02:51 GMT
- References: <343@moene.indiv.nluug.nl> <id.8J9S.1P4@ferranti.com> <1992Aug13.144226.8391@yrloc.ipsa.reuter.COM>
- Organization: ExNet Systems Ltd Public Access News, London, UK
- Lines: 38
-
- In article <1992Aug13.144226.8391@yrloc.ipsa.reuter.COM> rbe@yrloc.ipsa.reuter.COM (Robert Bernecky) writes:
- >In article <id.8J9S.1P4@ferranti.com> peter@ferranti.com (Peter da Silva) writes:
- >>In article <343@moene.indiv.nluug.nl> toon@moene.indiv.nluug.nl (Toon Moene) writes:
- >>> OK, but I only explained why *I* wouldn't use a debugger. Note: here's my
- >>> silent assumption: Debuggers are slow: they've a steep learning curve,
- >>> load slowly, take their time to reach the breakpoint you think will tell
- >>> you what's going wrong (I often watch my colleagues using one - it's so
- >>> much fun :-)
- >>
- >>What, slower than recompiling the program with appropriate printfs?
-
- Yes, if you have to re-compile with optimisation off.
-
- >>I don't use debuggers often, and if I had a fast enough interactive compiler
- >>I wouldn't use them at all, but they're a hell of a lot faster than "make"
- >>when you get down to the last bit of troubleshooting.
- >
- >
- >Ah, perhaps I'm missing something here, but I personally do NOT like
- >the idea of modifying ANY code in order to debug it. That is, insertion
- >of printfs is harmful to maintainability.
-
- No worse than switching from optimised to non-optimised compilation; I've even
- had bugs where the non-optimised, debugging version hasn't worked when the
- normal copy has. I still think my code was OK...
-
- >It's easy to get in a situation where you THINK you have changed something,
- >or maybe you haven't, but you went and had coffee, then the phone rang...
-
- I use SCCS extensively on programs consisting of hundreds of modules, and for
- me this isn't *often* a problem. B^> Besides, I don't drink coffee. B^> B^>
-
- Damon
- --
- Damon Hart-Davis | Tel/Fax: +44 81 755 0077 |1.22|| ALL MAIL FREE.
- Internet: dhd@exnet.co.uk | Also: Damon@ed.ac.uk || US hotrod motor groups.
- --------------------------+----------------------++ >12 mail&news polls / day.
- Public access UNIX (Suns), news and mail for #5 per month. FIRST MONTH FREE.
-