8

Debugging Heuristics

I have found it! (in Greek, “Heurisko!”)

Archimedes

8.1 Preview

This chapter presents the definitions of debugging heuristics, with examples of using each to find actual bugs. It explains that debugging heuristics don’t lend themselves to easy categorization, as is the case with strategies and tactics. It notes that many debugging heuristics are similar to the mathematical heuristics described in Polya’s book.

We have identified the following debugging heuristics:

image Modify the program so that you can repeat the problem at will.

 Create a test case that will demonstrate the problem when desired.

 Reduce the input required ...

Get Debugging by Thinking now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.