Class 3 · CBSE AI · Strand C — Algorithms are Recipes
What is debugging? Finding the broken step — for kids
Debugging means finding and fixing the error in your steps. A core problem-solving skill. For Class 3 children.
Class 3 · CBSE AI · Strand C — Algorithms are Recipes
Debugging means finding and fixing the error in your steps. A core problem-solving skill. For Class 3 children.
Fixing a broken recipe
If your idli batter doesn't rise properly, you don't throw away the whole recipe and start over — you check each step to find what went wrong. Did you add too much water? Not enough rice? Debugging is exactly that: checking each step until you find the one that's broken.
Finding the broken bulb in a string of Diwali lights
When a string of Diwali lights doesn't glow, you go bulb by bulb until you find the broken one. You don't replace the whole string — just the one bad bulb. Debugging an algorithm works the same way: find the one broken step and fix just that.
Every Dhee Learning session for this concept follows three stages. We share the questions Dhee actually asks, so you can hear what a session sounds like.
Stage 1 — Surface
Here's an algorithm for making lemonade: (1) pour water in a glass, (2) add salt, (3) squeeze lemon, (4) stir. A child followed it and the lemonade tasted terrible. Can you find the bug?
Rote answer
"Child spots the sugar/salt error but cannot explain how they found it"
Understood
"Child traces through the algorithm, identifies the incorrect step (salt instead of sugar) and explains exactly what wrong result that produces"
Stage 2 — Reasoning
When you found the bug, how did you look for it? Did you check every step, or did you jump straight to the answer? What's the safest way to find a bug in a long algorithm?
Follow-up Dhee may use: If the algorithm had 20 steps, where would you start looking for the bug? Is there a smart strategy?
Stage 3 — Application
Here's an algorithm for a robot to sort red and blue marbles into two boxes. Step 3 says: 'If the marble is red, put it in the blue box.' The boxes keep filling up with the wrong colours. What is the bug, and how do you fix it?
Misconception Dhee watches for: Child rewrites the entire algorithm from scratch instead of identifying and fixing only the broken step
Dhee turns this concept into a 15-minute spoken session — asking, listening, and probing — so your child builds the idea themselves.
Debugging means finding and fixing the error in your steps. A core problem-solving skill. For Class 3 children.
If an algorithm has a bug, the whole thing needs to be rewritten from the beginning
Dhee opens with a question — for example: "Here's an algorithm for making lemonade: (1) pour water in a glass, (2) add salt, (3) squeeze lemon, (4) stir. A child followed it and the lemonade tasted terrible. Can you find the bug?" — listens to your child's answer, then probes the reasoning behind it. The session ends when the child can apply the idea to a brand-new situation, not just recall it.