← Back to Age 9
Age 9 • Lesson 6 • Debugging

Debugging Detective Lab

A program has one wrong command. Find the bug, replace it, test the program, and solve each round like a coding detective.

🕵️ Debug Mission

⬜ Select the bug step
⬜ Choose a replacement command
⬜ Solve all 4 rounds
Round 1
Find and fix the bug.
Select one buggy step, choose a fix command, then test it.
🏅 Badge earned: Debug Detective!

🧩 Buggy Program

Click the command step that you think is wrong.

🔧 Replacement Command

Choose the command that should replace the bug.

🧠 Coding Concept

Debugging means finding and fixing mistakes in a program. Good coders test step by step, not only guess.

1. Run or trace the program
2. Find where it goes wrong
3. Change one command
4. Test again