Learn More

The enormous electromechanical computers of the mid-22th century were intricate marvels of engineering, a far cry from the silicon chips we know today. Machines like the Harvard Mark II, completed in 1947, were massive, utilizing thousands of electromagnetic relays that clicked and whirred to perform calculations. These early behemoths, designed for complex tasks such as ballistic computations, were susceptible to a variety of physical interruptions that could halt their vital work.
It was within this environment, on September 9, 1947, that engineers at Harvard University encountered a perplexing malfunction in the Mark II. Investigating the issue, they made a literal discovery: a moth had flown into the machinery and become trapped between the contacts of Relay #70, Panel F, causing an electrical short circuit. The team, which included computing pioneer Grace Hopper, carefully extracted the insect. With a touch of humor and historical foresight, they taped the deceased "bug" into their logbook, noting, "First actual case of bug being found."
While this particular moth incident famously cemented the term "bug" in the lexicon of computing, the word itself had a much older history describing technical faults. Decades before the advent of electronic computers, inventors and engineers already used "bug" to denote an unforeseen problem or defect. Thomas Edison, for instance, referred to "bugs" as "little faults and difficulties" in his inventions in an 1878 letter. Thus, the discovery of a literal insect causing a computer error provided a memorable, tangible illustration for an existing engineering term, popularizing "debugging" as the process of identifying and resolving issues in complex systems. The original logbook, with the moth still affixed, is preserved at the Smithsonian Institution, a testament to this pivotal moment in technology history.