Everything you need before the bell rings
Learning Objectives
Students will be able to…
- ✓Explain what a bug is.
- ✓Explain debugging.
- ✓Find a mistake in steps.
- ✓Stay persistent.
Even the best coders in the world make mistakes! When a program doesn’t work, the trick isn’t to give up — it’s to become a code detective. How do we find and fix the bugs?
Debugging Check
Project each item and have students answer about debugging. The tool explains bugs and how to fix them.
40 minutes, five moves
Tap any phase to open the teacher moves and student actions.
Hook — Everyone Makes Bugs
Even great coders make mistakes — so what do they do when code breaks?
👩🏫 Teacher Moves
- Show a broken program.
- Ask how to fix it.
- Set the goal.
🎒 Student Actions
- See the bug.
- Wonder how.
- Predict debugging.
Unplugged — Unplug It
Students practice.
👩🏫 Teacher Moves
- Find the mistake in an algorithm.
- Fix the wrong step.
- Test it again.
🎒 Student Actions
- Find it.
- Fix it.
- Test it.
Use — Debugging in Code
Students use the tool.
👩🏫 Teacher Moves
- Send students to Debugging Check.
- Note what a bug is.
- Note how to fix it.
🎒 Student Actions
- Answer them.
- Note bugs.
- Note fixing.
Modify — Change It
Students modify.
👩🏫 Teacher Moves
- Fix a buggy set of steps.
- Test the fix.
- Explain the bug.
🎒 Student Actions
- Fix it.
- Test it.
- Explain it.
Create — Create
Students conclude.
👩🏫 Teacher Moves
- Debug a partner’s steps.
- Explain the fix.
- Complete the exit ticket.
🎒 Student Actions
- Debug it.
- Explain it.
- Complete the exit ticket.
Built to the standards you report on
Aligned to the CSTA K-12 Computer Science Standards and ISTE Standards for Students.
Test and debug a program to ensure it runs as intended.
Take on roles when collaborating to fix programs.
Create and correct programs.
Computational Thinker — persist and troubleshoot.
One lesson, every learner
Multilingual Learners
- Bug/fix picture cards.
- Sentence frame: “The bug is ___; I fixed it by ___.”
- Fix a wrong step together.
Support & Access
- Start with one obvious bug.
- Fix one step.
- Test right away.
Stretch & Extend
- Debug a longer program.
- Explain a tricky bug.
- Help a friend debug.
What to gather
- 📽️Projector / board
- 🐛Buggy step cards
- 💻Debugging Check
- 🔍Magnifiers (detective fun)
- ✏️Pencils
- 🎫Exit-ticket slips
Key terms — hover for a quick definition
Exit Ticket
Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.
Create: be a code detective.
Have students trade a set of instructions with a partner, hunt for any bugs, and fix them together — celebrating persistence. A printable debugging sheet is in the Computer Science library.
Study the key terms
Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.
Nice work!
Check your understanding
A quick self-check with instant feedback, drawn from this lesson’s key terms.
Nice work!
Printable worksheet
A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.
Part A · Write the word that matches each meaning
- a mistake in code
- a set of instructions
- to correct a mistake
- to hunt for problems
- not giving up
- to try the program
- something that’s wrong
- to find and fix mistakes
Part B · Show what you learned
- What is a “bug” in coding?
- What does debugging mean?
- If your program doesn’t work, what should you do first?
Part B: 1) A mistake or error that keeps a program from working right. 2) Finding and fixing the mistakes in your code. 3) Check your steps carefully to find the mistake (don’t give up!).