Learning objective
Debugging
Debugging & Error Resolution
Master systematic techniques to find, isolate, and fix logic, syntax, and runtime errors in programs.
Spotting Errors
Identify and fix simple errors in physical sequences and robot paths.
Let's Go!
Learn
Compare a broken sequence where a sprite turns the wrong way with a corrected sequence.
Volcanoes: Earth's Fiery Chimneys!
Melted subterranean rock called magma rises through vents. When it erupts onto the surface, it becomes glowing red lava!
My Study Notes
Try it yourself
Spot the Bug
๐ Open a practice space
Or try locally: ๐ Raspberry Pi Projects
๐ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)
๐ฏ Task Success Criteria (Rubric)
Notices when a physical robot or sprite stops at the wrong location.
Identifies which single step in a 3-step sequence caused the mistake.
Corrects the erroneous step to ensure the sequence finishes successfully.
Explains why the original step caused an error and demonstrates the fix.
๐ What A Good One Looks Like (WAGOLL)
A top-tier student project for Spotting Errors includes:
- Core Deliverable: Spot the Bug
- Target Quality: Corrects the erroneous step to ensure the sequence finishes successfully.
- Excellence & Polish: Explains why the original step caused an error and demonstrates the fix.
When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!
Reflect
Learning check
Teacher setup, curriculum links and progress descriptors
Spark support
Routine: See Think Wonder
Achievement pathway
- Foundation: Notices when a physical robot or sprite stops at the wrong location.
- Developing: Identifies which single step in a 3-step sequence caused the mistake.
- Secure: Corrects the erroneous step to ensure the sequence finishes successfully.
- Mastering: Explains why the original step caused an error and demonstrates the fix.
Curriculum links
Curriculum strand: algorithms-programming
Outcome: AP.01.B.1.1 โ Identify and fix simple errors in physical sequences and robot paths.
PYP: Form ยท Digital instructions must be precise for systems to work as expected.
Learner profile: Inquirer
Competency tags
Gate support
Accessibility alternative:
Teacher override: allow
Locked level
Level 2: Step Tracing
Complete the previous learning check to unlock this next level.
Step Tracing
Predict program behavior by tracing execution step-by-step.
Learning objective
Trace code line-by-line or block-by-block to predict where a bug occurs.
Let's Go!
Learn
Use a step-execution tool to run code one block at a time.
Try it yourself
Trace the Code
๐ Open a practice space
Or try locally: ๐ Raspberry Pi Projects
๐ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)
๐ฏ Task Success Criteria (Rubric)
Follows along as code blocks highlight during execution.
Predicts where a character will land after each individual block runs.
Traces a 5-block script manually and highlights the exact block containing the bug.
Teaches a partner how to step through code block-by-block to find hidden bugs.
๐ What A Good One Looks Like (WAGOLL)
A top-tier student project for Step Tracing includes:
- Core Deliverable: Trace the Code
- Target Quality: Traces a 5-block script manually and highlights the exact block containing the bug.
- Excellence & Polish: Teaches a partner how to step through code block-by-block to find hidden bugs.
When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!
Reflect
Learning check
Teacher setup, curriculum links and progress descriptors
Spark support
Routine: Zoom In
Achievement pathway
- Foundation: Follows along as code blocks highlight during execution.
- Developing: Predicts where a character will land after each individual block runs.
- Secure: Traces a 5-block script manually and highlights the exact block containing the bug.
- Mastering: Teaches a partner how to step through code block-by-block to find hidden bugs.
Curriculum links
Curriculum strand: algorithms-programming
Outcome: AP.01.B.1.1 โ Predict program behavior by tracing execution step-by-step.
PYP: Function ยท Tracing code step-by-step reveals where intent diverges from execution.
Learner profile: Communicator
Competency tags
Gate support
Accessibility alternative:
Teacher override: allow
Locked level
Level 3: Logic vs Syntax
Complete the previous learning check to unlock this next level.
Logic vs Syntax
Distinguish between syntax errors and logical errors in block programs.
Learning objective
Classify bugs as syntax errors (invalid structure) or logic errors (unexpected outcome).
Let's Go!
Learn
Compare a script with a broken snap connection to a script with `score = score - 1`.
Volcanoes: Earth's Fiery Chimneys!
Melted subterranean rock called magma rises through vents. When it erupts onto the surface, it becomes glowing red lava!
My Study Notes
Try it yourself
Classify and Fix
๐ Open a practice space
Or try locally: ๐ Raspberry Pi Projects
๐ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)
๐ฏ Task Success Criteria (Rubric)
Recognizes when code fails to run versus when code runs but gives wrong output.
Distinguishes an unattached block (syntax) from a wrong math operator (logic).
Categorizes a list of 6 bugs as either syntax or logic errors and resolves both types.
Analyzes complex scripts and explains how syntax and logic errors interact.
๐ What A Good One Looks Like (WAGOLL)
A top-tier student project for Logic vs Syntax includes:
- Core Deliverable: Classify and Fix
- Target Quality: Categorizes a list of 6 bugs as either syntax or logic errors and resolves both types.
- Excellence & Polish: Analyzes complex scripts and explains how syntax and logic errors interact.
When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!
Reflect
Learning check
Teacher setup, curriculum links and progress descriptors
Spark support
Routine: See Think Wonder
Achievement pathway
- Foundation: Recognizes when code fails to run versus when code runs but gives wrong output.
- Developing: Distinguishes an unattached block (syntax) from a wrong math operator (logic).
- Secure: Categorizes a list of 6 bugs as either syntax or logic errors and resolves both types.
- Mastering: Analyzes complex scripts and explains how syntax and logic errors interact.
Curriculum links
Curriculum strand: algorithms-programming
Outcome: AP.02.B.1.1 โ Distinguish between syntax errors and logical errors in block programs.
PYP: Connection ยท Programs fail differently depending on whether rules were broken or logic was flawed.
Learner profile: Thinker
Competency tags
Gate support
Accessibility alternative:
Teacher override: allow
Locked level
Level 4: Isolation Methods
Complete the previous learning check to unlock this next level.
Isolation Methods
Apply systematic isolation techniques like disabling blocks and speech-bubble printouts.
Learning objective
Isolate problematic code sections using temporary block disconnection and variable say blocks.
Let's Go!
Learn
Debug a multi-sprite project by testing each sprite's script independently.
Try it yourself
Isolate and Resolve
๐ Open a practice space
Or try locally: ๐ Raspberry Pi Projects
๐ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)
๐ฏ Task Success Criteria (Rubric)
Disconnects blocks randomly when trying to fix a bug.
Disconnects specific script sections systematically to test modules in isolation.
Uses 'say variable' blocks and temporary script detachment to pinpoint the exact broken block.
Develops a structured 4-step debugging protocol for team coding projects.
๐ What A Good One Looks Like (WAGOLL)
A top-tier student project for Isolation Methods includes:
- Core Deliverable: Isolate and Resolve
- Target Quality: Uses 'say variable' blocks and temporary script detachment to pinpoint the exact broken block.
- Excellence & Polish: Develops a structured 4-step debugging protocol for team coding projects.
When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!
Reflect
Learning check
Teacher setup, curriculum links and progress descriptors
Spark support
Routine: ShortcutSimulator
Achievement pathway
- Foundation: Disconnects blocks randomly when trying to fix a bug.
- Developing: Disconnects specific script sections systematically to test modules in isolation.
- Secure: Uses 'say variable' blocks and temporary script detachment to pinpoint the exact broken block.
- Mastering: Develops a structured 4-step debugging protocol for team coding projects.
Curriculum links
Curriculum strand: algorithms-programming
Outcome: AP.02.B.1.1 โ Apply systematic isolation techniques like disabling blocks and speech-bubble printouts.
PYP: Change ยท Isolating code components systematically exposes hidden errors.
Learner profile: Principled
Competency tags
Gate support
Accessibility alternative:
Teacher override: allow
Locked level
Level 5: Edge Case Testing
Complete the previous learning check to unlock this next level.
Edge Case Testing
Design test cases that include normal, boundary, and edge case inputs.
Learning objective
Create comprehensive test tables covering standard inputs, zero values, negative numbers, and rapid inputs.
Let's Go!
Learn
Learn how boundary values (0, max values, empty inputs) stress-test code logic.
Try it yourself
Build a Test Matrix
๐ Open a practice space
Or try locally: ๐ Raspberry Pi Projects
๐ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)
๐ฏ Task Success Criteria (Rubric)
Tests programs using only standard positive inputs.
Identifies obvious edge cases like zero or negative user input.
Constructs a complete test matrix with boundary inputs, unexpected characters, and concurrent events.
Evaluates third-party programs by conducting rigorous stress-testing and edge-case audits.
๐ What A Good One Looks Like (WAGOLL)
A top-tier student project for Edge Case Testing includes:
- Core Deliverable: Build a Test Matrix
- Target Quality: Constructs a complete test matrix with boundary inputs, unexpected characters, and concurrent events.
- Excellence & Polish: Evaluates third-party programs by conducting rigorous stress-testing and edge-case audits.
When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!
Reflect
Learning check
Teacher setup, curriculum links and progress descriptors
Spark support
Routine: See Think Wonder
Achievement pathway
- Foundation: Tests programs using only standard positive inputs.
- Developing: Identifies obvious edge cases like zero or negative user input.
- Secure: Constructs a complete test matrix with boundary inputs, unexpected characters, and concurrent events.
- Mastering: Evaluates third-party programs by conducting rigorous stress-testing and edge-case audits.
Curriculum links
Curriculum strand: algorithms-programming
Outcome: AP.03.B.1.1 โ Design test cases that include normal, boundary, and edge case inputs.
PYP: Perspective ยท Robust software requires rigorous testing against extreme and unexpected inputs.
Learner profile: Knowledgeable
Competency tags
Gate support
Accessibility alternative:
Teacher override: allow
Locked level
Level 6: Console & Stack Traces
Complete the previous learning check to unlock this next level.
Console & Stack Traces
Interpret text console error logs, line numbers, and stack traces to fix complex programs.
Learning objective
Read error messages and stack traces to identify line numbers and error types in text-based or block code.
Let's Go!
Learn
Deconstruct stack trace structures: Error Name, Description, File Name, and Line Number.
Try it yourself
Console Diagnostics
๐ Open a practice space
Or try locally: ๐ Raspberry Pi Projects
๐ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)
๐ฏ Task Success Criteria (Rubric)
Gives up when seeing a text error message or console log.
Reads the line number provided in an error message to locate the fault.
Interprets stack traces, identifies exception types (e.g., IndexOutOfBounds, TypeError), and fixes runtime faults.
Mentors peers in reading developer tools, network logs, and console outputs for full-stack debugging.
๐ What A Good One Looks Like (WAGOLL)
A top-tier student project for Console & Stack Traces includes:
- Core Deliverable: Console Diagnostics
- Target Quality: Interprets stack traces, identifies exception types (e.g., IndexOutOfBounds, TypeError), and fixes runtime faults.
- Excellence & Polish: Mentors peers in reading developer tools, network logs, and console outputs for full-stack debugging.
When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!
Reflect
Learning check
Teacher setup, curriculum links and progress descriptors
Spark support
Routine: Zoom In
Achievement pathway
- Foundation: Gives up when seeing a text error message or console log.
- Developing: Reads the line number provided in an error message to locate the fault.
- Secure: Interprets stack traces, identifies exception types (e.g., IndexOutOfBounds, TypeError), and fixes runtime faults.
- Mastering: Mentors peers in reading developer tools, network logs, and console outputs for full-stack debugging.
Curriculum links
Curriculum strand: algorithms-programming
Outcome: AP.03.B.1.1 โ Interpret text console error logs, line numbers, and stack traces to fix complex programs.
PYP: Reflection ยท Developer diagnostics and error logs provide precise maps to software fixes.
Learner profile: Reflective
Competency tags
Gate support
Accessibility alternative:
Teacher override: allow
