The first-ever computer bug was, quite literally, a bug. In 1947, Grace Hopper, a computer scientist, found a moth stuck in a relay of the Harvard Mark II computer. She removed the bug and taped it into the computer's logbook, coining the term "debugging" to describe fixing.