Coding · Grade 1
Debug with a Trace
First graders make a trace of a program, recording Bolt's row, column and direction after each block. They compare traces with plans to find the first wrong block (which may come before the bump), and fix bugs in programs and loops, then test again.
- 3 lessons
- About 60 minutes
- Trace and debug check: 6 questions
- Ways to answer: program with blocks, choose an answer, highlight a text, match pairs, type a number and true or false
What learners will discover
- Make a trace: record where Bolt is, and which way it faces, after each block.
- Use a trace and a plan to find the first block where a program goes wrong.
- Fix bugs, including a wrong repeat number or a block outside a loop, and test again.
Lessons
-
Make a trace 4 steps2 practiceabout 14 min
-
Find the first wrong step 4 steps2 practiceabout 15 min
-
Fix bugs, even in loops 5 steps3 practiceabout 16 min
-
Trace and debug check 6 questions at the end
Keep exploring
Games to practice with
- Robot RoutesSnap together arrow, repeat and dance blocks to guide Bolt the robot home.
More 1st grade coding
- 1st Grade Coding Worksheets10 printable worksheets
Guide for grown-ups
- How to start homeschooling: a step-by-step guide for familiesA guide for parents · 7 min read