Skip to main content

Section 1.6 What is Debugging?

Programming is a complex process. Since it is done by human beings, errors may often occur. Programming errors are called bugs and the process of tracking them down and correcting them is called debugging. Some claim that in 1945, a dead moth caused a problem on relay number 70, panel F, of one of the first computers at Harvard, and the term bug has remained in use since. For more about this historic event, see first bug 1 .
Three kinds of errors can occur in a program: syntax errors 2 , runtime errors 3 , and semantic errors 4 . It is useful to distinguish between them in order to track them down more quickly.
Check your understanding

Checkpoint 1.6.1.

    Debugging is:
  • tracking down programming errors and correcting them.
  • Programming errors are called bugs and the process of finding and removing them from a program is called debugging.
  • removing all the bugs from your house.
  • Maybe, but that is not what we are talking about in this context.
  • finding all the bugs in the program.
  • This is partially correct. But, debugging is more than just finding the bugs. What do you need to do once you find them?
  • fixing the bugs in the program.
  • This is partially correct. But, debugging is more than just fixing the bugs. What do you need to do before you can fix them?
You have attempted of activities on this page.