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.
How a detective works
-
1
Read the case file
Every case tells you what the program should do. That's your goal โ keep it in mind.
-
2
Run the program and watch closely
The robot follows the steps exactly. Watch where things go wrong โ that's your clue.
-
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!
Press Run the Program to see what happens.
The program (tap the step that looks buggy)
๐ง You found it! Pick the fix:
Run the program first โ you can't find a bug without evidence!
All three cases solved! ๐ต๏ธ
You watched, investigated, and fixed every bug โ that's exactly how real programmers debug.
Back to Foundations Studio