Skip to content

What Twenty Years of Debugging Taught Me

What debugging taught me is that a quiet ticket can leave the false sentence in place. The next incident wears a different name.

Founder Logs #43 · Part of Binary and Beyond. LinkedIn newsletter edition follows.

What debugging taught me is where a session is allowed to stop. Twenty years of production systems did not make the faulty line easier to find. They made a quiet ticket harder to trust. The report can go green while the false sentence is still in the product. I have closed that ticket. The next incident used a different noun, and the same permission.

A commit is a receipt for a symptom. The lesson is the claim the system was treating as true, written where a person who was not in the room will trip over it.

The morning report that came back under a new name

This scene is a composite, not a client story. The shape is familiar.

A dealer portal sells parts kits to workshops. A regional agency holds the relationship. Each morning a warehouse file says which kits are still in the building. The page can show a count. Submit has to read the file again, because another branch may have taken the kits since the page loaded. If the file has not arrived, the honest page says unknown.

One Tuesday the morning report lists orders the warehouse cannot see. Support can see the clicks. The ticket is named for the report: orders did not land.

The first change retries submit when the warehouse answers slowly. The report goes quiet. Then finance sees two invoices for the same dealer and the same kits. The second change treats an empty reservation id as a reason to drop the row. The duplicates stop. Later a workshop is promised kits the building no longer has, and the page had still said four. The third change lengthens a timeout, so a slow file has more time to answer.

Three commits. Three closed tickets. One sentence nobody wrote next to the button: a reservation exists when the warehouse file has accepted the kits, and not when the portal has drawn a count.

The retry repeated a write the first attempt may already have finished (Why Retries Make Bugs Worse). The empty-id check hid a row the warehouse had never confirmed. The longer timeout gave yesterday's file a better chance of being treated as this morning. Each change made the noun in the ticket go away. None of them changed what the screen was allowed to imply.

The sequence is the lesson. The first week looks like absence, so a retry is a reasonable reach. The second week looks like surplus, two invoices for one promise, so a filter on empty ids is a reasonable reach. The third week looks like a stale yes, the page having stopped waiting, so a longer timeout is a reasonable reach.

Each reach is locally sane. Together they are one claim wearing three costumes. Absence, surplus, and a stale yes are what you get when a count is allowed to stand in for an acceptance. The warehouse file is the acceptance. The page is a picture of a file that may already be wrong. A session that stops at whichever costume arrived this week will meet the other two later, with a new ticket number and a clear conscience. Who may tell a workshop the kits are theirs, and on the evidence of which file, is still unwritten. Every quiet report is a pause between costumes.

Why the ticket gets a patch and the sentence does not

A ticket is a noun with a deadline. Missing orders. Duplicate invoices. A count that lied. The person on the hook can see the noun. A commit that removes it is a commit they can explain before lunch.

The sentence does not fit a status field. "We do not know whether this reservation exists until the warehouse file says so" is a product argument. It asks who may tell a workshop yes. That permission was probably settled once, in a conversation that never landed next to the button (The Engineering Decisions Clients Never See).

Sessions inherit the ticket's shape. You search for the noun, change the line that participates, and watch the report agree. The session feels finished, because the evidence you were grading yourself on has gone quiet.

That quiet skips the second question. Which claim, if it is false, produces this noun and the next ones you have not been paged for? Until someone writes the claim beside the code, the next costume is already on the calendar. It will arrive as a fresh failure, and a fresh person will start from the noun.

Logs cooperate with the costume. "Submit failed" records the noun. "Reservation not accepted by the warehouse file" records the sentence. Teams store the first kind, because it matches the ticket, and call the store monitoring (Observability Is About Understanding, Not Monitoring). A line that would still print on the day the bug returns is observing the ticket. A long file can still be unable to contradict the screen.

There is a social reason the sentence loses. Naming it means saying the last three fixes did not finish the job. The people who shipped them are often still in the room, and they shipped in good faith. A new ticket is easier on that group than a shared sentence. The next on-call pays for the courtesy. They inherit a green report and a branch that still implies a yes the warehouse has not given.

Symptom, patch, and sentence

Before I trust a debugging session, I keep three objects apart. A single commit likes to collapse them.

The symptom is what a person can point at. A report, a second invoice, a screen that said four. It has a time, and usually a workshop that noticed first.

The patch is the change that makes the pointing stop. A retry, a dropped row, a longer wait, a swallowed error. It can be a correct local edit and still leave the product allowed to lie.

The sentence is the claim the system was treating as true. Here, a reservation exists when the portal has shown a count, rather than when the warehouse has accepted the kits. The sentence is what the next incident is owed. If you cannot say it in one line, the session has a theory about a file. It does not have an ending.

A session that ships a patch and does not write the sentence has stored the lesson in a person. People leave, or they are in another repo when the pager goes off. The sentence, written next to the branch that implied it, is what a later cleanup trips over on purpose. You want the next simplification to fail a test named for the phone call, not to ship a quieter bug.

What the ticket rewardsWhat the session owes
The noun goes quietThe claim that produced the noun is named
A commit this afternoonA place the next person will read the claim
A log of the failureA log that would change if the claim broke again
An owner for the patchAn owner for the disagreement the patch left open

When the right-hand column is empty, the left-hand column is only a calendar. The same claim returns in a week when the person who remembered it is somewhere else. A reviewer who asks whether the duplicates stopped will get a true yes. The question that protects the next month is what the product may tell a workshop, and which file has to agree first. Silence on that question is the unfinished session.

Where a quiet ticket keeps its cost

On the next on-call. The pager does not restore your reasoning. It brings a new noun, and a person who was not in the first session. If the sentence is not in the code, in a test named for the call, or in a log that can be false, they begin at the ticket. Folklore of past bugs sounds like experience. The next person on the rotation cannot inherit a story that lives in someone else's memory. They inherit the branch.

In the estimate. A week that closed three tickets and wrote no sentences gets remembered as "that area is understood." The next change is priced as if the claim were settled. The difference shows up when the fourth costume arrives, and the number had no line for it (Every Software Estimate Is a Risk Estimate). The hours were not the risk. The unstated permission was.

In who gets praised. A team that thanks the person who closed the ticket will get faster patches. A team that asks for the sentence will get someone who can stay in the disagreement a little longer. Praise is a curriculum. People repeat the behavior that ended the meeting.

In review. I have approved the dropped row. The diff was small, the test passed, the report was quiet. The review never asked what the line is now allowed to tell a workshop. A small diff is often a large permission hiding in a guard clause, where a later reader will treat it as hygiene.

When a tool proposes the patch. A model will offer the retry, the filter, and the timeout faster than I can find the function. It is graded on the noun, the same way a tired afternoon is graded. If review accepts the diff because the report went quiet, the review skipped the lesson. Someone who will own the next call still has to say the sentence out loud. Speed to a plausible diff is not a finished session.

What debugging taught me to ask before a ticket closes

Ask these before the ticket is marked done. A clear answer means the sentence sits where the next incident will hit it. Fog means the patch retired a noun and left the claim standing.

  1. What did the screen imply that the other system had not accepted? On this portal, a count of four implied kits a warehouse file had not given. If you cannot name the implication, you are still describing the report.
  2. If this patch is reverted, which sentence becomes false, and who hears it first? A revert that only brings the old noun back has not identified a claim. A revert that changes who is allowed to say yes has.
  3. Which log line would change if the claim broke again under a different noun? "Submit failed" survives every costume. "Warehouse file has not accepted this reservation" fails in a way you can show a workshop.
  4. Where will a person who was not in this session read the sentence? A commit message is a weak answer. A test name, a comment on the branch, or a status the page already shows (unknown, accepted, rejected) is a strong one. A chat thread scrolls away before the next costume arrives.
  5. Are we closing because the report is quiet, or because the claim changed? Quiet belongs to this week. A changed claim still holds next week. Only the second one is a close.
  6. What will the next costume be called, if the claim stays? Absence came back as surplus, then as a stale yes. Write the likely next name while the three tickets are still one story. That note is worth more than a fourth patch.
  7. Who owns the disagreement the patch did not settle? A retry can be the right mitigation for a slow file and the wrong lesson about existence. The mitigation can ship while the phone is ringing. Name the owner now. "Whoever is on call next" means the sentence has no one.

When the implication, the reader, and the owner have to be invented after the ticket is green, the session ended at the symptom. The claim is still in production. It is between names.

How to leave the sentence where it will be found

Name the claim in the test. A test called "submit retries on timeout" documents the patch. A test called "a count is not a reservation until the warehouse file accepts the kits" documents the sentence. The second test fails when a later cleanup trusts the count again and moves the permission back to the screen.

Write the status you would say on the phone. Unknown, accepted, rejected. Those words are the sentence, visible to support, who will otherwise invent a fourth status called "it should be fine." If the page cannot say unknown, it is forced to lie on the morning the file is late. A workshop then loads a van for kits that are not in the building.

Split the mitigation from the close. Ship the retry if calls are failing in front of a workshop. Do not let that commit count as the end of the session. The end is a sentence someone else can find without asking you. An unnamed follow-up ("when we have time") is how the fourth costume gets a fresh ticket and a team that believes the area is understood.

Keep the costumes in one place. Missing, duplicate, and oversold are one claim. A short note that links the three tickets will do more for the next on-call than three green statuses. Put the note where the code branches on the count. That is the place a cleanup will actually touch.

End on the permission. Most sentences I have spent years recovering were permissions. Who may tell a workshop the kits are theirs. Who may treat a click as an order. Who may treat yesterday's file as this morning. A session that ends on a null check, and never on a permission, is still inside one costume. The null check can stay. It is not the close.

The fingerprint

What debugging taught me is that the line is rarely the lesson.

The lesson is the sentence the system was allowed to imply. A patch can retire the ticket and leave that sentence standing. The next incident will not reuse the name. It will reuse the permission.

Close the session when someone who was not in the room can find the sentence. Until then the report is quiet, and the bug has kept its job.

Related reading

Founder Logs #43 · Part of Binary and Beyond. LinkedIn newsletter edition follows.

Agency partner

Need delivery stability without adding headcount?

Quick Brown Fox helps agencies ship complex web platforms, tighten QA, and scale engineering capacity—without becoming a liability to your client relationships.