Debug is a derived term of bug. As verbs the difference between debug and bug is that debug is (computer science) to search for and eliminate malfunctioning elements or errors in something, especially a computer program or machinery while bug is (informal|transitive) to annoy. As a noun bug is an insect of the order hemiptera (the "true bugs").