• Wilzax@lemmy.world
    link
    fedilink
    arrow-up
    28
    ·
    1 year ago

    Check which file is giving the error, it’s probably being thrown in an included library, not your code.

    • erogenouswarzone@lemmy.ml
      link
      fedilink
      English
      arrow-up
      23
      arrow-down
      2
      ·
      1 year ago

      Yeah, but that’s some bullshit. I want to know what line in my file is causing the error.

      And they know! They know what line in your file caused the error! They know the value of all the variables when the error hit. But do they show that? Fuck no.

        • erogenouswarzone@lemmy.ml
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          1 year ago

          No offense, but I know how to read a stack trace, and yes locate a familiar file - if you’re lucky enough to have one listed therein.

          My point is, there is no excuse for them being so terrible except that they’ve always been that way.

          The important information should be brief and at the top. This is design 101. The same ideas that have driven newspaper articles and websites for as long as the two have been a thing.

          You put the important stuff in big letters at the top, and the rest, if you need it, is beneath the fold.

          Edit: just to drive the point home: I’m sure it’s not the packages I’ve downloaded that are causing the error, I am positive it is my code, so show me where my code had a mistake first. Then you can show me the horrible “wall of text” that is the stack trace so I can understand it better later, but 99% of the time, just seeing the line that caused the error is enough to know what the problem is.