American engineers have been calling small flaws in machines "bugs" for over a century. Thomas Edison talked about bugs in electrical circuits in the 1870s. When the first computers were built during the early 1940s, people working on them found bugs in both the hardware of the machines and in the programs that ran them.
In 1947, engineers working on the Mark II computer at Harvard University found a moth stuck in one of the components. They taped the insect in their logbook and labeled it "first actual case of bug being found." The words "bug" and "debug" soon became a standard part of the language of computer programmers.
Among those working on the Mark II in 1947 was mathematician and computer programmer Grace Hopper, who later became a Navy rear admiral. This log book was probably not Hopper's, but she and the rest of the Mark II team helped popularize the use of the term computer bug and the related phrase "debug."
References:
Grace Murray Hopper,"The First Bug," Annals of the History of Computing,vol. 3 #3, 1981, pp. 285-286.
P. A. Kidwell, "Stalking the ElusiveComputer Bug," IEEE Annals of the History of Computing, vo.20, #4, 1998, pp.5-9.
Our collection database is a work in progress. We may update this record based on further research and review. Learn more about our approach to sharing our collection online.
If you would like to know how you can use content on this page, see the Smithsonian's Terms of Use. If you need to request an image for publication or other use, please visit Rights and Reproductions.