Oct 8, 20261 min read

The moth that stopped Harvard Mark II and made debugging famous

In 1947, engineers found a moth stuck between relay contacts in the Harvard Mark II computer, creating the most famous debugging story in computer history.

In 1947, engineers working on the Harvard Mark II made an unusual discovery. They found a moth lodged between relay contacts inside the massive computer.

When a moth stopped a computer

The Harvard Mark II had stopped working, and the cause turned out to be remarkably simple. A moth had gotten stuck in the machine's relay contacts, preventing the computer from functioning properly.

The engineers carefully removed the moth and taped it into the Harvard Mark II logbook, preserving both the insect and the moment for posterity.

Grace Hopper and the birth of debugging

Grace Hopper, the pioneering computer scientist, later made this story famous. Her retelling of the moth incident helped popularize the term "debugging" in computer science.

The Harvard Mark II moth became a legendary piece of computer history. What started as a simple hardware malfunction turned into one of the field's most enduring anecdotes, giving a literal meaning to the concept of a computer bug.

The actual moth, still taped to the logbook page, remains a tangible link to the early days of computing when problems could be as straightforward as an insect in the wrong place at the wrong time.

Share

Get history in your inbox

One story from the past, delivered every morning. No ads, no clutter, just the moment that matters.

We'll send one email to confirm it's you.

Keep going

More like this