Back to Foundations Studio
Foundations ยท Lesson 5

Bug Detective ๐Ÿ”

Something is wrong with these programs! Run each one, watch what the robot does, and hunt down the bug โ€” the one step that makes everything go wrong. Find it, fix it, and stamp the case SOLVED.

15-20 min Ages 6-9 Debugging 3 Cases

How a detective works

  1. 1

    Read the case file

    Every case tells you what the program should do. That's your goal โ€” keep it in mind.

  2. 2

    Run the program and watch closely

    The robot follows the steps exactly. Watch where things go wrong โ€” that's your clue.

  3. 3

    Tap the buggy step, then fix it

    Click the step you suspect. If you're right, pick the correct fix and run it again to close the case!

Case 1

Press Run the Program to see what happens.
Robot following the program

The program (tap the step that looks buggy)

    Run the program first โ€” you can't find a bug without evidence!