• Strykker@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    Except the C++ “Core dumped” line is telling you it just wrote a file out with the full state of the program at the time of the crash, you can load it up and see where it crashed and then go and look at what every local variable was at the time of the crash.

    Pretty sure you can even step backwards in time with a good debugger to find out exactly how you got to the state you’re currently in.

  • FlatFootFox@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    My favorite compile error happened while I was taking a Haskell class.

    ghc: panic! (the ‘impossible’ happened)

    The issue is plainly stated, and it provides clear next steps to the developer.

    • Ignotum@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      I had a similar error, though not from the compiler
      Error message just read this should never happen