Finding and Fixing Bugs
Computing · Programming & Algorithms · ages 6–9
Debugging: when a program does something unexpected, comparing what it did with what it should do, finding the step that went wrong, fixing it and testing again; treating bugs as normal, not as failure
At what age?
Usually at ages 6–9. The age is a guide: what decides whether a child is ready is the foundations below.
How do you know your child has learned it?
- Spot where a short program or set of instructions first goes wrong
- Fix the bug and run the program again to check it now works
- Describe a bug they found in their own words (what happened, what should have happened)
A quick check
When a program your child made does something odd, could they track down which step is wrong and fix it, without starting over?
What comes first?
- Programming a Sequence (needed): You debug a program you can already read and run
- Persisting When It's Hard (helps): Debugging takes patience when the first fix doesn't work
What it leads to
Where to learn it
- ScratchJr (App · No words needed · ages 5–7 · Free): Picture blocks that need no reading: young children sequence a character's actions and learn ordering and breaking problems down.
- Hello Ruby (Book · English · ages 4–8): Picture books by a Finnish coder that teach computational thinking through story and unplugged play rather than a particular language.
- Raspberry Pi Projects (Course · Chinese & English · ages 8–14 · Free): The Raspberry Pi Foundation's free project library (in Chinese too): build something that works, step by step, in Scratch, Python or HTML.