# Fixing Mistakes > Third graders learn that every coder makes mistakes — and fixing them is called debugging. You run the program, find the step that goes wrong, fix it, and… **Computer Science** | **Grade 3** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g3-cs-fixing-mistakes.html* Third graders learn that every coder makes mistakes — and fixing them is called debugging. You run the program, find the step that goes wrong, fix it, and run it again. They order the steps, then fix a mistake in a program. **Copy link** works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment. ## Everything you need before the bell rings ### Learning Objectives Students will be able to… - Know that **bugs** are normal. - Follow **steps to fix** a mistake. - Find the **wrong step**. - Fix and check it. What do you do when your code does not work? ## Order the Fixing Steps Project this and have students put the steps for fixing a mistake in order. ## 45 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — Oops! What do you do when your program does the wrong thing? #### 👩‍🏫 Teacher Moves - Run a program with a bug. - Ask what to do. - Set the goal. #### 🎒 Student Actions - Look. - Guess. - Get ready. ### Use — Fixing Mistakes Students use the steps. #### 👩‍🏫 Teacher Moves - Send students to Order the Fixing Steps. - Order the steps. - Note run → find → fix → run. #### 🎒 Student Actions - Order. - Say. - Note it. ### Modify — Find the Bug Students modify. #### 👩‍🏫 Teacher Moves - Point to the step that goes wrong. - Guess the cause. - Mark it. #### 🎒 Student Actions - Point. - Guess. - Mark. ### Create — Fix It Students create. #### 👩‍🏫 Teacher Moves - Fix a mistake in a program. - Run it again. - Check it works. #### 🎒 Student Actions - Fix. - Run. - Check. ### Reflect — Reflect Students close. #### 👩‍🏫 Teacher Moves - Say the first step. - Say what debugging means. - Complete the exit ticket. #### 🎒 Student Actions - Say it. - Say. - Complete the exit ticket. ## Built to the standards you report on Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students. Test and debug a program to make sure it runs. Create programs with sequences & loops. Decompose a problem to find the bug. Test and fix solutions. ## One lesson, every learner ### Multilingual Learners - Fixing-step cards. - Frame: “run, find, fix, check.” - Think aloud a fix. ### Support & Access - Use 3 steps. - Fix one simple bug. - Use a checklist. ### Stretch & Extend - Find 2 bugs. - Explain the fix. - Help a partner debug. ### What to gather - 📽️Screen / board - 🐛Fixing-step cards - 💻Order the Fixing Steps - 🎮A buggy program - 📓Notebooks - 🎫Exit-ticket slips ### Key terms - **bug**: a mistake in code - **debug**: to find and fix a bug - **run**: make the program go - **find**: locate the wrong step - **fix**: correct the step - **check**: make sure it works - **mistake**: something not quite right - **try again**: run it after fixing ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Reflect: fixing mistakes. Have students list the steps to fix a mistake. A printable debugging worksheet is in the Computer Science library. ## Check your understanding **1. What does “bug” mean?** - a mistake in code *(correct)* - make sure it works - to find and fix a bug - run it after fixing “bug” means: a mistake in code **2. Which word means: “to find and fix a bug”?** - find - mistake - debug *(correct)* - fix “debug” means: to find and fix a bug **3. What does “run” mean?** - make the program go *(correct)* - run it after fixing - locate the wrong step - correct the step “run” means: make the program go **4. Which word means: “locate the wrong step”?** - debug - bug - find *(correct)* - try again “find” means: locate the wrong step **5. What does “fix” mean?** - correct the step *(correct)* - make sure it works - locate the wrong step - run it after fixing “fix” means: correct the step **6. Which word means: “make sure it works”?** - fix - mistake - try again - check *(correct)* “check” means: make sure it works ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g3-cs-fixing-mistakes.html All lessons: https://lessonplans.k12academics.com/