Telling a debugging story
A past-example answer about finding a bug whose cause wasn't obvious: the symptom, what you suspected and tested, the turn, the fix and its proof, and what you changed. It shows how you reason when nobody knows the answer yet.
What it is
A debugging story is a past-example answer about a problem whose cause you had to find: a bug, an outage, a number that didn't add up. It sits inside the STAR shape, but its Action beat has a structure of its own, because a hunt is a sequence of guesses and tests rather than a plan carried out. Google's SRE book describes troubleshooting that way: given what you observe and what you know about the system, you hypothesize causes and test them, round after round, until one holds. A good story shows those rounds. The listener sees how you pick a first guess, how you design a check that settles it, and what you do when the check says no.
| Beat | What to say | Why it helps the listener |
|---|---|---|
Symptom | What was expected, what actually happened, how often, and who it hurt. A good problem report carries the same three things: expected behavior, actual behavior and, if possible, how to reproduce it. | Sets the puzzle so the listener can follow your guesses. |
Stakes and first move | If users were affected: what you did first to keep the system working as well as it could, and what evidence (logs, a snapshot) you kept before changing anything. | Shows judgment about severity before cleverness. |
Hypotheses | What you suspected first and why, the test you ran, and what it ruled in or out. Repeat for each round that mattered. | This is where your reasoning is visible. |
The turn | The observation that pointed at the cause. Often a recent change: deployments and configuration changes are a productive place to start. | Separates method from luck. |
Fix and proof | The change you made and the evidence it worked: a reproduction that stopped, an error rate that recovered. | Distinguishes a fix from a hope. |
Prevention and lesson | What you added (a test, an alert, a write-up) and what was wrong in your picture of the system. | Shows you closed the loop. |
Keep the dead ends. The hunt usually includes a guess that was wrong. Keep it in, briefly: what you suspected, why it was plausible, and the test that ruled it out. The SRE book advises taking clear notes of ideas, tests and results, and its section on negative results argues that an experiment that fails tells you something certain. In a story, a dead end given as one sentence shows you test guesses rather than follow them. Three dead ends at a paragraph each is a different problem: the listener loses the thread, so keep the longest treatment for the round that found the cause.
Say what the test was designed to split. A hypothesis is cheap; the check you chose is what shows thinking. A useful test rules one group of causes in and another out, you run the likely and low-risk checks before the exotic ones, and some tests suggest rather than prove. The published list of common troubleshooting pitfalls is worth reading as a list of what to avoid in the story too: chasing symptoms that weren't relevant, assuming the cause of last month's incident, and treating a coincidence as a correlation.
Be honest about certainty. Definitive proof of a cause, by reproducing the failure at will, is often out of reach in a production system, and you may have to settle for a probable cause. Saying "the most likely cause was X, and here's what I did to confirm it" reads as more careful than a confident claim without backing. Julia Evans makes a related point from the other side: when something breaks, it's often because something in your mental model of the system was wrong, which is also where the lesson at the end of the story comes from.
Your part, and the outcome. Amazon's interview guide asks for "I" statements about your own contributions, and for measurable outcomes and lessons learned at the end of each story. A debugging story tempts the opposite on both counts: the hunt was a group effort, and the "result" was that a bug went away. Name the steps that were yours (the hypothesis you proposed, the test you wrote) and give the result a size: how many users, how long, how much of the error rate. Asking a colleague for help is part of many real hunts, and Evans counts it among her debugging rules; say who you asked and what you learned from them rather than hiding it.
When to use it
Use this shape when the question asks for a problem you had to figure out: "the hardest technical problem you've solved", "a bug you're proud of finding", "a time you had to dig into the details". It also fits the moment in a project walk-through when the interviewer asks what went wrong and how you found out; see A level deeper on your project. Amazon lists "Dive Deep" among its Leadership Principles, describing leaders who stay close to the details, check them often, and are skeptical when the metrics and the anecdotes disagree. A hunt where the dashboard looked healthy while users saw errors is a direct example of that kind of skepticism, if you have one.
When not to
Some questions sound like they want a bug hunt and don't, and some hunts don't make a story.
- A hypothetical. "How would you debug a service that's slow at night?" asks you to run the method live: what you'd look at first, what would split the likely causes, what you'd try. A past story is evidence you can offer after, not the answer. See Answering a hypothetical.
- A failure question. "Tell me about a time something broke because of you" centers on your mistake and what changed in how you work. A debugging story told as a triumph skips the part being asked about. See Failure and conflict without blame.
- A short hunt. A typo found in ten minutes with no wrong guess shows nothing about method. Choose a case with at least one real fork in it; see Choosing the right story.
- Thirty seconds, not two minutes. In a recruiter screen or a project pitch, give symptom, cause and fix in three sentences and offer the detail. The full shape waits for someone with time to hear it.
- Someone else found it. If you reproduced the bug or wrote the fix but a teammate found the cause, say that. A hunt told in the first person that wasn't yours tends to fall apart at the first "why did you suspect that?"
One more case that changes the opening rather than the shape: when the problem was a live incident, the first thing you did was probably not debugging. The SRE book's triage advice is to make the system work as well as it can first, by diverting traffic or disabling a subsystem, and to root-cause afterward, while keeping evidence such as logs. Evans draws the same line for everyday bugs: leave the bug in place to understand it, unless it's a production incident that has to be mitigated first. A story that opens with "I rolled back, then started looking" shows that judgment; a story that opens with an hour of investigation while users waited invites a question about priorities.
Compared
| Shape | What it sounds like | When it's the right choice | What it costs |
|---|---|---|---|
Cause first | "It was a stale connection-pool setting. Here's how I found it." Then the hunt, compressed. | Time is short, the interviewer asked for the outcome, or you're answering a narrow follow-up. Also a fair opener when you know a deep technical probe is coming anyway. | It tempts you to skip the rounds, and the interviewer has to pull the reasoning out of you. |
Full chronology | Each step in the order it happened, each dead end at length, the fix at the end. | The interviewer asks you to walk through exactly what you tried, or you're presenting a write-up where the sequence is the point. | At two minutes it runs long and buries the turn under the detours. |
Hypothesis-led | Symptom, two or three guesses with the test for each, the turn, fix and proof, what you changed. | Most "hardest problem" questions with a two-minute opening. It matches how the troubleshooting process actually runs: guess, test, narrow. | It needs an honest reconstruction. If the cause turned up by luck, say so, and talk about what you'd do to find it on purpose. |
In a picture
Step 1 of 3
Open with the symptom: expected against actual, how often, who it hurt. If users were affected, add your first move to contain it and the evidence you preserved.
Each round is a guess and a check. When the check says no, say what it ruled out and move to the next guess. Spend the most words on the round that found the cause, and name the observation that turned it.
Give the fix and the proof that it worked, then what you added so the class of bug is less likely to return, and the correction to your picture of the system. Stop and let the follow-ups come.