I have been troubleshooting this script for weeks and finally found it was trying to divide by zero.

Just ship it with debug flags so your program always generates a stack trace to the user!

elouboub
link
fedilink
01Y

Makes me think of devs who debug with print statements instead of a debugger and breakpoints.

Well, Kernighan himself said “The most effective debugging tool is still careful thought, coupled with judiciously placed print statements.”

If it was good enough for him…

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 77 users / day
  • 211 users / week
  • 413 users / month
  • 2.92K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.8K Comments
  • Modlog