The Debugging Mind-Set

As we’ve already seen, debugging is first and foremost a mental activity. A healthy debugging mind-set can be a difficult balance to strike. Occasionally, it can feel as though you’ve joined Alice Through the Looking-Glass [Car71]:

Alice:

There’s no use trying, one can’t believe impossible things.

White Queen:

I daresay you haven’t had much practice. When I was your age, I always did it for a half hour a day. Why, sometimes I’ve believed as many as six impossible things before breakfast.

Taken naïvely, the “no broken windows” approach could be interpreted to mean that only perfection will do. But as anyone who’s ever worked on a nontrivial software project knows, bugs are inevitable. No matter how hard we try, some ...

Get Debug It! 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.