In 1947, while working on the Harvard Mark II computer, Hopper found a moth stuck in a relay, causing a malfunction. She removed the moth and wrote in her logbook, "First actual case of bug being found."
This incident popularized the term "bug" for a software error, and "debugging" became the standard term for the process of finding and fixing those errors.