Think Like a Scientist Four activity books · ages 3 to 6
Light Minds Lab
Ages 4–6 · 6 sheets · free PDF

Free printable debugging worksheets

Six sheets, each with a code that does not work and a reason it does not: one arrow is wrong, one is missing, there is one too many, two are swapped so the robot walks into a wall, the robot is standing on the wrong square, and, on the last sheet, there are two bugs to find. On five of them the child works out why and writes the fixed code in the empty boxes. On the wrong-start sheet the code is fine and the robot is what moves. Drawn with the book's tools, and in none of it.

US Letter · 6 pages · black and white · no signup

What is on the sheets

Bonus sheet 1 of 6, not in the book: Find the bug. Fix it.
Bonus sheet 1Not in the bookFind the bug. Fix it.
Bonus sheet 2 of 6, not in the book: Find the bug. Fix it.
Bonus sheet 2Not in the bookFind the bug. Fix it.
Bonus sheet 3 of 6, not in the book: Find the bug. Fix it.
Bonus sheet 3Not in the bookFind the bug. Fix it.
Bonus sheet 4 of 6, not in the book: Find the bug. Fix it.
Bonus sheet 4Not in the bookFind the bug. Fix it.
Bonus sheet 5 of 6, not in the book: Fix the start.
Bonus sheet 5Not in the bookFix the start.
Bonus sheet 6 of 6, not in the book: Find the bug. Fix it.
Bonus sheet 6Not in the bookFind the bug. Fix it.

Print at actual size (100%), not "fit to page". The target sizes on these pages are chosen for a particular age of hand, and scaling shrinks them.

Using them well

Run it before you fix it

Have the child trace the broken code on the grid with a finger first. The bug shows itself where the finger leaves the path, and finding it that way is the skill.

One bug has one cause

Broken does not mean failed. The code stops one square short, or goes through a wall, and there is a step that did it. Say that out loud the first time.

Do not point at the arrow

Watching a child stare at a four-arrow code with the bug in step four is hard. Ask which steps they have checked. Do not check them for them.

Questions

What is a debugging worksheet?

A code that does not work, a grid that shows it not working, and space to write the fix. Debugging is the fourth of the four ideas under every programming language, and it is the one most preschool coding material skips.

What age are these debugging worksheets for?

Five and six. They match the last unit of a book that lists for ages 4 to 6, and a child should be able to read and write a four-arrow code before finding the bug in one. The coding worksheets set is the place to start if they cannot yet.

Do these need a computer?

No. Nothing on them connects to anything. Four arrows, a grid, a pencil, and the empty boxes for the fix.

Do I need to sign up or pay?

No. One PDF, six pages, no email address. They are not pages of the book: they are six new activities drawn by the book's renderer and checked by its simulator, with our mark and this address where a page number would be.

Where these came from

These 6 are not in the book.

Sequences, loops, conditionals and debugging, written in arrows on paper. No app, no tablet, no login. A locked symbol set of arrows and a grid. The child reads a code and traces it, then writes a code of their own, then shortens it with a loop, then finds the one wrong step in a code that does not work.

Cover of Coding