
STEM • 45 • 25 students • Created with AI following Aligned with Common Core State Standards
Free PDF · we'll email you a copy
This is lesson 12 of 20 in the unit "Microbit Mini-Unit for Year 6". Lesson Title: Debugging Techniques Lesson Description: Explore common bugs in coding and methods to troubleshoot. Students practice debugging their previous projects. Success Criteria: Students successfully identify and fix bugs. Differentiation: Group students for peer support.
Today students debug their Microbit-style coding projects from the previous lesson by identifying what the code is doing versus what they intended. They will use systematic troubleshooting steps, then test and revise until the program works as expected.
Students will be able to:
0–5 min · Hook (Bug Spotting). Teacher displays a short “before” behavior description (or live demo): “LEDs blink, but not in the pattern we wanted.” Students do a quick think: What could be wrong—inputs, conditions, or ordering?
5–12 min · Mini teach: Debugging cycle. Teacher models a 3-step loop: (1) observe the bug clearly, (2) locate the likely cause (check conditions/logic/variables), (3) change one thing and retest, recording results. Students fill a one-page “Debug Log” for their own project: expected behavior vs actual behavior.
12–22 min · Guided debugging stations (teacher-led groups). Teacher assigns 2–3 students per group with mixed readiness and provides a “Debug Checklist” card (What should happen? What did happen? Where in the code control logic runs? Any sign/direction assumptions? Any off-by-one or missing line?). Students work on their prior project, using the checklist to identify the first failing step.
22–32 min · Targeted fix: One-change retest. Teacher reminds: change one block/line at a time; retest immediately; circle the evidence that confirms the fix. Students select one bug, implement a single targeted correction, and update their Debug Log with “Changed ___ because ___.”
32–40 min · Partner share: Evidence-based explanation. Teacher gives sentence starters on the board:
Join thousands of teachers using Kuraplan AI to create personalized lesson plans that align with Aligned with Common Core State Standards in minutes, not hours.
Created with Kuraplan AI
Generated using openai/gpt-5.4-nano
🌟 Trusted by 1000+ Schools
Join educators across United States