you are viewing a single comment's thread
view the rest of the comments
[–] 24 points 2 years ago (6 children)

I learned early in my software engineering career these two beautiful rules of debugging:

  1. Read all of the words
  2. Believe them
  • source
  • parent
  • hideshow 6 child comments
  • [–] 6 points 2 years ago (3 children)

    Addendum to 2: never believe that what they say is relevant to what's actually happening here. You have a lot of faith that the people writing error messages knew what they were doing!

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 2 years ago* (1 child)

    I mean, if the error says "variable foo is not defined" I don't think it's wise to go "I'm pretty sure it's defined, the compiler is just wrong" 😂

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 2 years ago

    I don’t know, have you ever used JavaScript? I’ve run into some really fucking weird bugs. I’ve also spent hours trying to find the source of an error message only to discover the error message was lying and caused by some other error.

  • source
  • parent