πŸ§™ Wiz Kids
Learn β€Ί Teaching Digital Skills

Debugging as pedagogy: the bug is the lesson

Evidence grade: PROMISING, with strong adjacent foundations. Direct trials of debugging-first instruction are accumulating rather than accumulated; the supporting structure is solid β€” error-management training research from adult learning, the productive-failure literature, and the CS-education tradition from Papert onward all point the same way.

Every programming curriculum teaches writing programs; the better ones teach fixing them as first-class content rather than as the unfortunate interval between writing and working. The case for promoting debugging from incident to curriculum is partly practical β€” professional programming is mostly debugging β€” but mostly pedagogical: the bug is where the mental model shows itself.

The reframe that starts it

Papert's Mindstorms (1980) contains the founding move: in LOGO classrooms, the question was never "is it right?" but "is it fixable?" β€” and the answer was always yes. The reframe does two jobs at once. Cognitively, a bug is information: the machine did exactly what you said, and the gap between said and meant is a precise pointer at the flaw in your model β€” no other feedback in education is this specific, this immediate, or this ego-free (the error message criticizes the program, never the child). Emotionally, it converts the moment of failure from verdict to clue β€” which matters because the error-climate research (and the mindset praise findings) says how errors are received determines whether children keep taking the risks learning requires.

The adult-training literature adds hard support: error-management training β€” deliberately designing errors into practice and framing them as learning events β€” outperforms error-avoidant training on transfer in meta-analysis (Keith & Frese, 2008). Bugs aren't the cost of learning to program; structured encounters with them are the active ingredient.

The moves that work

What the evidence doesn't say

In the classroom

  1. Schedule broken programs on purpose β€” one fix-it task per construct, minimum; your best debuggers will reveal themselves as children you didn't expect.
  2. Install predict-run-explain as the routine for every run, chorally at first.
  3. Split the celebration: "you found it!" before "you fixed it" β€” diagnosis is the rarer skill.
  4. Model your own bugs live β€” the teacher debugging their projected mistake, narrating the ladder, is the single best error-climate intervention available.

How Wiz Kids applies this

Fix-the-broken-charm tasks are first-class content in the Charm Forge (debugging has its own skill node), every golem bonk is step-precise information delivered without judgment, runs are unlimited and unpunished while par scoring quietly rewards prediction over tinkering, and the fiction installs Papert's reframe wholesale: the golem "did exactly what you said β€” the clue is in the difference."

References


Β© Glu IO Pty. Ltd. β€” Wiz Kids (wiz.kids). Link freely; republication requires permission β€” see terms. Found an error in our reading of the research? We correct fast: tell any teacher piloting Wiz Kids.