Skip to content
integrated computational thinking

Algorithms 5: Algorithms Plugged - Spicy

< Back to Building Block
Step 3 of 7: The Debugging Process

In the next three steps, you will be presented with a bugged program that you will need to debug. Use the debugging process below to fix the issue!

The Debugging Process

No matter the bug, there is a simple set of questions that should be followed in order to solve the issue.

Ask yourself...

  1. What is the program supposed to do?
  2. What is the program doing?
  3. What is the problem (the bug)?
  4. What is causing the program to do the wrong thing?
  5. How can you debug the problem?
  6. Fix the bug

Notice that the first four steps do not include adjusting the code in any way. Before you start changing the code you must have completed the 4 steps!