Primary Wiki · Computing · KS2

What is debugging?

Debugging is finding and fixing the mistakes (called "bugs") in a computer program so that it does what it's supposed to.

How programmers debug

  • Run the program and watch where it goes wrong.
  • Read the code line by line to spot mistakes.
  • Print messages to check what the program is doing.
  • Change one thing at a time and test again.

All Wiki articles