A test fails only on the build server. An export is empty once a week. A service restarts and leaves one cryptic line behind. This book replaces guessing with a repeatable method for working out what really happened. You will learn to turn a vague report into a reproduction that fails on demand, shrink it to its essentials, read stack traces in Python, JavaScript and Java, write logs that answer questions and search them with everyday command-line tools. You will also narrow problems by halving the search space, choose between a debugger, an assertion and a print statement, handle intermittent and race-condition bugs, prove a root cause and lock the fix in with a regression test. Every step is driven by evidence you can check.