![A stick figure smiling](/images/welcome.jpg)
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!
![Image of a comic. To read the full HTML alt text, click "read the transcript".](/images/uploads/the-pocket-guide-to-debugging-wizard-zines-30.png)
read the transcript!
If you can’t reproduce a bug, sometimes you need to comb through the logs for clues. Some tips:
- filter out irrelevant lines (for example with grep -v)
- find 1 failed request and search for that request’s ID to get all the logs for that request
- build a timeline: copy and paste log lines (and your interpretations!) into a document
- if you see a suspicious log line, search to make sure it doesn’t also happen during normal operation
- if there’s a cascade of errors, find the first error that started the problems
Saturday Morning Comics!
Want another comic like this in your email every Saturday? Sign up here!
© Julia Evans 2024 | All rights reserved (see the FAQ for notes about licensing)