Why I Am Willing to Pledge That I Will Never Ever Fire Up the Debugger Again!

Waterloo for the Debugger

Prologue

Every profession eventually accumulates rituals.

Some are useful.

Some once were useful.

Some survive long after the reason for their existence has disappeared.

Software engineering is no exception.

One of our most cherished rituals is this:

"Fire up the debugger."

For decades, it was the battle cry of competent engineers.

The program misbehaved.

The debugger came out.

A breakpoint was set.

Variables were inspected.

Understanding was achieved.

The bug was fixed.

The world moved on.

Today I am willing to make a public pledge:

I will never ever fire up the debugger again.

Not because bugs disappeared.

Not because software became perfect.

Not because debuggers stopped working.

But because software engineering evolved.

And the debugger lost the war.

The Strange Position of the Debugger

The debugger is under attack from four directions at once.

The remarkable thing is that the attackers don't know about each other. They were invented by different people, in different decades, for different reasons.

Yet they all push in the same direction.

Front I: TDD

Suppose I discover a defect through a debugging session.

The session creates:

Understanding

for me.

Tomorrow the understanding is gone.

The next engineer never receives it.

The next LLM never receives it.

The system never receives it.

Now suppose I write a failing test instead.

The test creates:

Executable Knowledge

for everybody.

Forever.

My codebase holds four thousand such tests, checked on every commit, by a machine that never gets tired and never forgets.

A debugging session is a discovery mechanism.

A test is a preservation mechanism.

Given a choice between the temporary artifact and the permanent one, why would I choose the temporary one?

Front II: Mutation Testing

A passing test suite proves astonishingly little.

Coverage proves even less.

Coverage merely tells us:

The code was executed.

Mutation testing asks the uncomfortable question:

If the code were wrong, would anybody notice?

A mutation tool deliberately breaks the code. It flips a < into a <=, deletes a branch, returns a default value, and runs the whole suite again. Every mutant that survives is a bug the tests would have waved through.

This changes everything.

The goal is no longer:

Write tests

The goal becomes:

Verify that the tests verify

A suite that kills its mutants leaves very little room for the kind of bug you would need a debugger to find.

Front III: Semantic Telemetry

My protocol implementations emit telemetry at eighty semantic decision points, each recording the full context that led to the decision.

Not log messages.

Not stack traces.

Not printf statements.

Decisions.

Leader Elected
Recovery Started
Quorum Reached
Membership Accepted
Certificate Generated

Each event states what the system decided, at the moment it decided it.

A debugger shows you one process, frozen at one instant.

Semantic telemetry shows you the story of the whole cluster, across every node, over hours.

The system explains itself.

Failures arrive carrying their own context.

Front IV: Evidence-Based Analysis

Traditional debugging assumes:

Human
    ↓
Execution State

A human, poking at a live process, hoping to be in the right place at the right moment.

Modern systems increasingly support:

System
    ↓
Evidence
    ↓
Analysis

When something goes wrong, the system packages what happened: the seed, the inputs, the telemetry, the timing, the resource usage. The analysis happens afterwards. Calmly. As often as needed. By whoever, or whatever, is best placed to do it.

My last measurement campaign ran a thousand network partitions on a cluster made up of five microcontrollers over fifty-two hours.

Every figure in the resulting summary was generated by a tool, from the evidence those runs left behind.

The Fatal Weakness

Debuggers work best on systems that barely need them.

A deterministic, single-threaded program can be paused, inspected and resumed without changing what it does. That is exactly the kind of program a decent test suite already covers.

As systems become asynchronous, multi-threaded and distributed, the act of observation increasingly alters the behavior being observed.

Take a Raft cluster. Set a breakpoint in the leader.

Congratulations: you have just injected a network partition.

The followers stop hearing heartbeats. Their election timers fire. A new leader is elected. When you finally press "continue", the old leader wakes up in an old term, in a cluster that has moved on without it.

The bug you were chasing is gone.

The one you are now looking at, you created yourself.

The T-Rex Problem

Attacking an issue in a distributed system emitting hundreds of messages per second by firing up the debugger is like charging a T-Rex uphill, naked, armed with a blunt spear held in your left hand while using your right hand to preserve your dignity.

At some level, one has to admire the courage.

At another, one must question the strategy.

The Alternative

Architecture
    ↓
TDD
    ↓
Fitness Functions
    ↓
Static Analysis
    ↓
Mutation Testing
    ↓
Semantic Telemetry
    ↓
Evidence Packages
    ↓
LLM Analysis

Each layer catches what the previous one let through:

  • Architecture makes the system testable in the first place: pure decision logic in the core, side effects at the edges.
  • TDD turns every expectation into executable knowledge.
  • Fitness functions stop the architecture from eroding. In my own projects they are single-purpose CI gates that fail the build when complexity, untested code or structural drift creep in.
  • Static analysis removes whole classes of mistakes before anything runs.
  • Mutation testing proves that the tests actually bite.
  • Semantic telemetry makes every runtime decision visible.
  • Evidence packages make every failure reproducible.
  • LLM analysis reads the evidence and proposes the fix, starting with a failing test.

Failures no longer trigger a debugger.

They trigger evidence.

And evidence, unlike a debugging session, can be replayed, shared, and turned into the next test.

Waterloo

Waterloo was not the day Napoleon suddenly became a poor commander.

It was the day several forces converged on one field. Wellington's line held the ridge all afternoon. Then Blücher's Prussians arrived on the flank. No single blow was decisive. The convergence was.

I believe the debugger is approaching its own Waterloo.

Not because debuggers stopped working.

But because TDD, mutation testing, architectural fitness functions, semantic telemetry, evidence-based analysis and autonomous implementation are attacking it from every direction at once.

None of them was designed to replace the debugger.

Together, they do.

Epilogue

In 1995, "Fire up the debugger!" was the battle cry of a software engineer.

In 2026, surrounded by executable specifications, mutation testing, semantic telemetry, evidence pipelines and autonomous implementation agents, it increasingly sounds to me like:

YABBA DABBA DOOOO!

The battle is over.

Saint Helena is warm and sunny this time of year.

Time to exile the debugger once and for all. And all the Freds still using it.

P.S. Next time: what replaces the debugger when you really do want to watch a distributed system in motion. A Raft cluster in your browser, where you can stop time and click on every single message...

Comments

Popular posts from this blog

MetalRaft: When Zero-Cost Abstractions Become Expensive

Why I Am Willing To Bet That Coding Is (Almost) None Of My Business Anymore

Why Coding Is (Almost) None of My Business Anymore