1947: Harvard engineers working on the Mark II computer find a moth stuck to one of the relays. They tape it to a logbook and write "First actual case of a bug being found" and introduce the words 'bug' and 'debug' in the context of programming.
It's not a myth, as far as I can tell. Note I didn't say they invented the term (though, granted, I inadvertently did imply it I suppose). In any case it likely helped popularize it.