• chad@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    8 months ago

    I’m a contractor at a rocket launch service provider. The final build of the ground control software is compiled and deployed to the launch pad with debug flags enabled because of a “fly like you test” mandate.

    Millions of dollars and tons of time invested by brilliant people are riding on rockets that are launched using software with debug flags because of an “if it ain’t broke don’t fix it” mentality and archaic test strategies.

    • henfredemars@infosec.pub
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      8 months ago

      I’ve worked on ground systems and it’s actually come in handy two times in five years, usually where we had a hard-to-reproduce bug. Getting the info when the problem happens can occasionally be all the difference.

      Addendum: And usually we didn’t care about performance. Basically never.

    • MultipleAnimals@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      8 months ago

      You can imagine how many node projects there are running in production with npm run. I have encountered js/ts/node devs that don’t even know that you should like, build your project, with npm build and then ship and serve the bundle.

    • Lupec@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      8 months ago

      Lol my workplace ships Angular in debug mode. Don’t worry though, the whole page kills itself if a dubious third-party library detects the console is open. Very secure and not brittle at all! Please send help

      • Barbarian@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        8 months ago

        Blink-blink-blink. Blink. Blink. Blink. Blink-blink-blink.

        No, I don’t have something in my eyes, I swear I’m fine looks nervously at boss.

        • SteveTech@programming.dev
          link
          fedilink
          English
          arrow-up
          0
          ·
          8 months ago

          I’ve seen some that activate an insane number of breakpoints, so that the page freezes when the dev tools open. Although Firefox let’s you disable breaking on breakpoints all together, so it only really stops those that don’t know what they’re doing.

  • answersplease77@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    this happens with so many scripts I’ve tried to debug with strace because strace requires to run as root or sudo which elevates the niceness of process which prevents certain errors from occuring when the script is run with root permissions and so it runs flawlessly without bugs and you sit wondering wtf

  • uranibaba@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    I once had a bug in a C# program I wrote. It made a HTTP request and if the user agent was left to default (whatever that was), the server just gave back an empty string as a reply. I took way to long until I understood what was going on and I kept chasing async, thinking I had messed it up some how.

  • Treczoks@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    8 months ago

    Heisenbug. Nasty buggers, especially in my domain: Embedded Engineering. When you are in the debugger, the whole processor is stopped, missing tons of data coming in, missing interrupts, getting network timeouts, etc. More often than not, resuming makes no sense, and you have to get straight to reboot.

    • phorq@lemmy.ml
      link
      fedilink
      Español
      arrow-up
      0
      ·
      8 months ago

      Exactly, who would put a rebugged version into production anyway?