Debugging simple programs worksheet for Years 1–2: Fix the wrong step
All 5 worksheets in this game
One for each chapter
Fix the Wrong Step is a printable debugging simple programs worksheet for Years 1 and 2 (ages 5 to 7) that teaches children to fix a mistake in a program by changing one step, then test it again. It follows the KS1 national curriculum in England for computing: create and debug simple programs.
- 3 A4 pages
- Answers sheet
- About 25 minutes
- Colour or black and white
- National curriculum
For members Membership opens every worksheet and every game. Already a member? Log in
Start with the free one: Make a program (chapter 1).
Print it on A4, in colour or black and white. Do it after the chapter, or before it to see what your child already knows.
What's on the worksheet
Your child debugs simple robot programs by testing, finding the wrong step, changing it and testing again. With a fix-my-walk activity at home and answers.
- Page 1 · Learn
- The four debugging steps (test, find the bug, fix it, test again), a worked example fixing a wrong turn, and a warm-up putting the steps in order.
- Page 2 · Try it together
- Fix my walk: a grown-up writes walking instructions to a toy with one hidden mistake, and your child walks it, finds and fixes the wrong step, then walks it again.
- Pages 2–3 · Practise
- Ring the wrong step and draw the right card, rewrite a buggy program and draw the path to test it, and decide whether two fixes really work.
- Answers sheet
- Every answer by page with the fixed path, what to watch out for (left and right mix-ups, starting again, not testing again) and ideas without paper.
3 A4 pages and an answers sheet · about 25 minutes
In the classroom
- Run Fix my walk in pairs in the hall, with one partner hiding a bug and the other debugging it.
- Use Sam and Ava's fixes as a quick show-me check: pupils hold up yes or no cards for each.
Questions from the worksheet
- Ring the wrong step. Then draw the card it should be.
- Step 3 is a bug. Draw the fixed program, then draw Beep's path to test it again.
- Sam and Ava each fixed this program. Test again: does Beep reach the flower now?
- Leo finds a bug in step 2. He says, "I'll rub out the whole program and start again." Is that the best way?
The answers are on the answers sheet, for grown-ups.
National curriculum in England
This worksheet practises this statement from the Years 1–2 computing programme of study:
- Create and debug simple programs
Source: National curriculum in England: computing programmes of study (DfE)
Using it at home
- Fix my walk takes about 10 minutes. Hide one wrong turn in your instructions and let your child find it by walking, rather than telling them.
- Chant the four debugging steps together, "Test, find, fix, test again!", before your child starts the Practise page.
Watch out for
- Mixing up turning left and turning right when fixing a program.
- Stand up and face the same way as Beep, then turn your body to check.
- Throwing the whole program away instead of fixing the one wrong step.
- Ask "Which steps worked? Let's keep those and change just one."
- Forgetting to test the program again after fixing it.
- A fix isn't finished until it's tested: trace or walk the whole program once more.
Questions and answers
What does debugging mean in KS1 computing?
Debugging means finding and fixing mistakes, called bugs, in a program. Children test the program, find the wrong step, fix it and test it again.
Should children start a program again if it has a bug?
Usually not. Most of the program often works, so it is better to keep the good steps, change only the wrong one and test again.
More worksheets from Debugging Simple Programs: A Bug Hunt with Beep
More Year 1 technology worksheets
One for every chapter of every game, with answers.
