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 again — 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
A bean-jar card says: put six beans in, add wet cotton, keep the jar in the dark cupboard, water it twice a week. Every line was followed and the sprouts came out pale and floppy. Which line is the broken one?
Rote answer
"Child names the cupboard line but cannot say how they found it"
Understood
"Child walks the card line by line, says what each line should give against what it did give, and stops at the cupboard line as the first difference"
Stage 2 — Reasoning
How did you find that line — by guessing, or by checking the lines one by one? Why is walking the card safer than guessing?
Follow-up Dhee may use: A friend says the last line is usually the guilty one. Is that a safe way to look for a broken step?
Stage 3 — Application
The class nimbu-paani card gives a salty glass every time, and nothing on it gets skipped. How would you find the broken line, and what would you change?
Misconception Dhee watches for: Child rewrites the whole nimbu-paani card, or adds extra lines, instead of changing the one line that says salt
Dhee turns this concept into a short spoken lesson — teaching, 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: "A bean-jar card says: put six beans in, add wet cotton, keep the jar in the dark cupboard, water it twice a week. Every line was followed and the sprouts came out pale and floppy. Which line is the broken one?" — 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.