Web Building Blocks Beginner

What Is Debugging?

Debugging is finding and fixing bugs so things work correctly again.

Infographic: What Is Debugging? It shows the steps coders use to find and fix a bug.
Download the poster

Debugging means finding and fixing bugs in code, so things work correctly again.

Here is how coders do it, step by step: check the clues, test one step at a time, find the bug, fix the code, change it and save, and test again. If it works, yay!

Why does it matter? Bugs can be frustrating, but fixing them makes programs work better, be safer to use, and more fun.

Here is a real example. A coder is making a game where the player jumps but falls through the platform. The coder checks the code, finds a wrong number, and fixes it. Now the player lands safely.

Good debuggers are patient and look for clues. Small fixes can make a big difference, so keep testing until it works just right.

Remember: bugs happen to everyone, be patient and look for clues, small fixes make a big difference, and keep testing.

What to remember

  • Debugging is finding and fixing bugs.
  • Coders check clues, test, find the bug, and fix it.
  • Bugs happen to everyone, so be patient.
  • Keep testing until it works just right.

Words to know

Debugging
Finding and fixing bugs in code.
Clue
A hint that helps you find a bug.
Fix
The change that makes the code work right.
Test
Trying the program to check it works.

For grown-ups

Debugging is the systematic process of locating and resolving defects: reproduce the issue, read error messages and logs, form a hypothesis, isolate the cause, fix, and re-test. It is a core engineering skill and a great lesson in patient, evidence-based problem solving.

Want the full story? These go deeper: