Here's a preview from my zine, The Pocket Guide to Debugging! If you want to see more comics like this, sign up for my saturday comics newsletter or browse more comics!
read the transcript!
My favourite way to get information about buggy code is to run the buggy code and experiment on it. (Add print statements! Make a tiny change!)
If the bug is happening on your computer every time you run your program: hooray! You’ve reproduced the bug!
An illustration of a smiling stick figure with curly hair. person (thinking): “ok, time to debug! I’ve got my print statements ready to go!”
But if you can’t make the bug happen, you’re left guessing.
An illustration of a sad stick figure with curly hair. person (thinking): “what was variable X set to when the bug happened? guess there’s NO WAY TO KNOW”
cute illustration of a bug: the next page has tips!
Saturday Morning Comics!
Want another comic like this in your email every Saturday? Sign up here!