What does debugging a program look like?

  • reproduce your bug, and reproduce it quickly
  • accept that it’s probably your code’s fault
  • start doing experiments, change one thing at a time
  • check your assumptions
  • throw error messages, don’t just silently fail
  • print out a stack of errors, not just one error to get to the root issue quickly
  • develop a true understanding of what the error messages mean

Full post here, 10 mins read