Lesson Objective

Students will translate directional sequencing skills to digital screen apps (Code.org Course A / Kodable Basics), identify bugs in pre-written code, and correct the sequences.

What is a "bug" in a computer program, and how do we fix it?

How do digital block arrows help us move characters on a screen?

Block Code, Bug, Debugging, Screen, Cursor

ISTE 5.c (Computational Thinker): Break problems into component parts, extract key information, and develop descriptive models to understand complex systems or facilitate problem-solving.

ISTE 5.d (Computational Thinker): Understand how automation works and use algorithmic thinking to develop a sequence of steps to create and test automated solutions.

Concept Hook: Read or tell a short story about a "bug" (mistake) hiding in a machine. Define debugging as finding and fixing errors.

Direct Instruction: Display a sample level from Code.org Course A (or Kodable Basics) on the main board. Show a sequence that contains an extra forward arrow. Run the code, watch the character crash, and ask students: "Where is the bug?"

Guided Practice: Drag away the extra block, test the new sequence, and highlight how fixing mistakes is an essential part of coding.

Independent App Work: Students launch Code.org Course A (Sequencing modules) or Kodable Basics on their devices. They work through dragging directional arrow blocks to guide characters through mazes.

Partner Debugging Check: If a student gets stuck, they call a "Debugging Buddy" to watch their character move and help spot the incorrect block.

DOK:
Level 2 (Skills & Concepts)

Support: Use touchscreen tablets for intuitive drag-and-drop block placement instead of trackpad mice.

Extension: Provide "broken" paper code strips where advanced students identify the exact incorrect arrow block without testing on screen first.

Digital debugging check: Student completes at least 3 debugging stages in Code.org Course A or Kodable Basics, successfully identifying and replacing incorrect directional blocks.