Learn More
The First Computer Bug Was a Real Bug
In an era when computers filled entire rooms, their inner workings were a maze of wires and electromechanical switches. Unlike modern silicon-based machines, the Harvard Mark II relied on thousands of relays, which opened and closed to complete circuits. It was within this complex, room-sized hardware that pioneering computer scientist Grace Hopper and her team encountered a persistent error in 1947. After a thorough search, they located the source of the malfunction: a moth had become trapped between the contacts of a relay, preventing it from closing and disrupting the machine’s operation.
While the term "bug" had already been used for decades in engineering to describe a flaw—even by Thomas Edison—this incident gave it a new, literal life in the nascent field of computing. The team carefully removed the insect and taped it into their operational logbook, with the now-famous annotation: "First actual case of bug being found." This witty entry cemented the term in the lexicon of computing. From that day forward, the process of finding and fixing problems in a computer program became known as "debugging," forever linking the abstract process of troubleshooting code to a very tangible, six-legged culprit.