Find the bug: a first debugging task for Grade 1
The PEEMS team · Published November 10, 2026 · 3 min read

Bugs are normal in programming. A Grade 1 level where children find and fix a mistake in a picture-block program, plus ways to encourage your child.
Every programming teacher knows this: a program almost never works the first time, even for experienced developers. Finding and fixing bugs (called debugging) is therefore a big part of coding. The good news is that children can meet it as early as Grade 1.
The idea: bugs are normal
A bug is a step that is wrong, missing or in the wrong place, so the result differs from what we wanted. To find it, a child acts like a little detective: run it, watch, compare with what was expected, then fix the right spot.
A sample level
In the level "Along the tread marks", the child sees a picture-block program that is already laid out but not quite right: following it, Pemi would not reach the goal. The task is to spot the mistake and fix it.

(This screenshot shows the level unsolved.) Children can follow the marks on the map to see where Pemi went, then work out which block sent Pemi the wrong way.
How to cheer your child on
An adult's attitude affects whether a child dares to try. Some ideas:
- Praise the process, not only the result: "You tried it, now let's see where Pemi stops."
- Ask instead of telling: "Where does Pemi start doing something different from what you thought?"
- Call a bug a "clue": "What is this bug telling us?"
- Give them time. Do not rush in to fix it; what children find themselves, they remember.
- Share your own mistakes: "I took a wrong turn on the way to the shop yesterday too."
A screen-free game
Write three steps for "walk to the table": "straight, left, straight", but plant one wrong step. Your child plays a robot following the words exactly, then you find which step led it astray together. Swap roles and let your child hide a bug for you.
Frequently asked questions
What if my child gets discouraged? Take a break and come back. An easier level first can rebuild confidence, and it helps to remind them that everyone meets bugs.
Does my child need to read? The level uses picture blocks, so it is mostly about looking at the pictures. You can read any text aloud.
How much help should I give? Start with questions, and help more only if your child is truly stuck.
Want to try it together?
Bug-hunting levels are part of Pemi CS, which is open now. International families are welcome to register their interest by email.
Keep reading: Teaching coding to preschoolers: where to start? · Loops through a bridge-building story
The PEEMS team


