Table of Contents
Preface |
About This Book |
Acknowledgments |
1. | A Method in the Madness |
Debugging Is More Than “Making the Bug Go Away” |
The Empirical Approach |
The Core Debugging Process |
First Things First |
Put It in Action |
2. | Reproduce |
Reproduce First, Ask Questions Later |
Controlling the Software |
Controlling the Environment |
Controlling Inputs |
Refining Your Reproduction |
What If You Really Can’t Reproduce It? |
Put It in Action |
3. | Diagnose |
Stand Back—I’m Going to Try Science |
Stratagems |
Debuggers |
Pitfalls |
Mind Games |
Validate Your Diagnosis |
Put It in Action |
4. | Fix |
Clearing the Decks |
Testing |
Fix the Cause, Not the Symptoms |
Refactoring |
Checking In |
Get Your Code Reviewed |
Put It in Action |
5. | Reflect |
How Did It Ever Work? |
What Went Wrong? |
It’ll Never Happen Again |
Close ... |
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.