Skip to content
Mips ’n Motion
Motherhood

Debugging Code and Toddlers: A Field Guide

Two systems, zero documentation, and a stack trace that ends in a tantrum.

By Mips 2 min read

By day, I debug software. By night (and early morning, and that weird 3 a.m. slot), I debug a toddler. After years of doing both, I've come to a very scientific conclusion: they are exactly the same job, except only one of them throws yoghurt at you.

So, for the parents in tech – and the techies thinking about becoming parents – here's my completely unofficial field guide.

1. Reproduce the bug first

Any developer will tell you: you can't fix what you can't reproduce. The same goes for meltdowns. Was it the blue cup instead of the green one? Did the banana break? Did I look at her wrong? Gather your logs before you panic.

Pro tip: Snacks are the `console.log()` of parenting. When in doubt, add one and observe the output.

2. Read the error message (it's usually screaming)

Production errors are loud for a reason. So are toddlers. Underneath "I DON'T WANT TO" there's almost always a real message: I'm tired, I'm hungry, or I need you to see me right now. The trick is to stop reacting to the volume and start reading the stack trace.

Every tantrum is a bug report written in the only language a two-year-old knows: VOLUME.

3. There is no such thing as a quick fix

"I'll just put her down for a nap real quick" is the parenting version of "this'll be a five-minute change." We both know how that ends: three hours later, you're on the floor, singing the same lullaby for the 47th time, wondering where your life went.

4. Rubber-duck it

When I'm stuck on a bug, I explain the problem out loud to a rubber duck until the answer reveals itself. With my daughter, I explain my problems out loud to her. She doesn't solve them, but she does nod very seriously, and honestly? That's more than some code reviewers give me.

My debugging checklist (works on both)

  1. Is it fed? (The system, the child, me.)

  2. Has it had enough rest?

  3. Did anything change recently? New teeth, new deploy, new daycare?

  4. Have I tried turning it off and on again? (A bath counts.)

  5. Is it actually broken, or am I just tired?


Here's the thing nobody tells you: some bugs aren't bugs. Some of them are just a small human learning how big feelings work, the same way I'm still learning how big feelings work. We're both in beta. We're both shipping updates. And we're both doing our best.

Now if you'll excuse me, someone has just pushed a breaking change to the living room wall. In crayon. 🖍️

Share

Join the conversation

Comments are moderated – be kind, be you.

Life in Motion

Why I'm Always in Motion, Even When I'm Lying Down

People sometimes ask why I called this blog Mips 'n Motion when, by my own admission, I spend a suspicious amount of time horizontal. Fair question. Here's my answer. Motion…

1 min read

Books & Reading

The Books That Got Me Off the Couch (Briefly)

Let me be honest from the start: I am a couch person. My couch knows my secrets. It has seen me cry at book endings, eat cereal for dinner and "just rest my eyes" for two hours.…

2 min read