Live data from Hacker News

Debugging: Indispensable rules for finding even the most elusive problems (2004)

dwheeler.com

11–20 of 238 posts

Re: Debugging: Indispensable rules for finding even the most elusive problems (2004)

#15
I also think it is worthwhile stepping thru working code with a debugger. The actual control flow reveals what is actually happening and will tell you how to improve the code. It is also a great way to demystify how other's code runs.

Re: Debugging: Indispensable rules for finding even the most elusive problems (2004)

#18

I also think it is worthwhile stepping thru working code with a debugger. The actual control flow reveals what is actually happening and will tell you how to improve the code. It is also a great way to demystify how other's code runs.

I think that fits nicely under rule 1 ("Understand the system"). The rules aren't about tools and methods, they're about core tasks and the reason behind them.

Re: Debugging: Indispensable rules for finding even the most elusive problems (2004)

#19
post #17

Personally, I’d start with divide and conquer. If you’re working on a relevant code base chances are that you can’t learn all the API spec and documentation because it’s just too much.

Also: Fix every bug twice: Both the implementation and the “call site” — if at all possible
Post reply on HN