LWN.net Logo

Quotes of the week

Quotes of the week

Posted Feb 7, 2008 23:11 UTC (Thu) by lutchann (subscriber, #8872)
In reply to: Quotes of the week by jengelh
Parent article: Quotes of the week

Generally I've found kernel debuggers to be most useful for finding bugs in other people's
code...


(Log in to post comments)

kernel debuggers

Posted Feb 9, 2008 21:35 UTC (Sat) by giraffedata (subscriber, #1954) [Link]

It's the opposite for me. When somebody else's code has a bug, I can often just read the code and see where it doesn't do the right thing. When I wrote the code, I'll miss the bug on reading the code the same way I did when I wrote it.

With the debugger, I have to understand the code intimately. I display a variable value or code path to see if it matches what I intended for it to be. With someone else's code, I don't really know what he intended a variable to mean or what code is supposed to run for what cases, so the debugger isn't much help.

The only place the debugger is especially useful with somebody else's code is when I can't tell from reading the code which piece of it handles my case, so a trace points me to the piece that I need to read more closely.

kernel debuggers

Posted Feb 15, 2008 15:03 UTC (Fri) by lgb (guest, #784) [Link]

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds