Mail Archives: djgpp/1999/09/09/08:18:53
On Wed, 8 Sep 1999, bowman wrote:
> As far as debugging, Kernighan & Pike, in _The Practice of Programming_ ,
> mention the use the debugger to get the backtrace, and look at a few
> variables when a program dumps core. Otherwise, they find printf and other
> debug statement compiled in generates a lot more meaningful information.
_The Practice of Programming_ is a wonderful book, but the above is
IMHO one of its few misses: they never mention the bugs where data is
overwritten or accessed when the programmer thinks it shouldn't. Bugs
like these are virtually impossible to find without a debugger that
supports data-read and data-write breakpoints.
- Raw text -