The Empirical Approach

There are many different approaches you can adopt to gain the understanding you seek. And as long as the approach you choose gets you closer to your goal, it has served its purpose.

Having said that, it turns out that in most instances one particular approach, the empirical approach, tends to be by far the most productive.

Construct experiments, and observe the results.

Empiricism relies upon observation or experience, rather than theory or pure logic. In the context of debugging, this means directly observing the behavior of the software. Yes, you could read the entire source code and use pure reason to work out what’s going on (and on occasion you may have no other choice), but doing so is usually inefficient and ...

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.