• NotSteve_@piefed.ca
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    2
    ·
    23 hours ago

    It drives me crazy that half my coworkers do this, including a senior dev. I’ll be on a call trying to help debug something and it makes it so difficult not being able to set a breakpoint

    • RheumatoidArthritis@mander.xyz
      link
      fedilink
      arrow-up
      6
      ·
      14 hours ago

      I used to do debuggers until I started doing embedded and dipped my feet in multithreading (2 different projects). After many hours lost because the debugger straight lied to me about which line of code has been executed, a colleague suggested that I just do a printf like a filthy beginner. And 🤩it worked🤩 and I never went back to the unreliable world of debuggers. Even though now I’m mostly working with single-threaded python scripts.

    • andyburke@fedia.io
      link
      fedilink
      arrow-up
      29
      ·
      22 hours ago

      I console.dir and debugger; and breakpoint all day. You are allowed to mix your strategies.

        • Omgpwnies@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          5 hours ago

          and the one that keeps getting slept on for some reason, watch breakpoints - stop when foo is changed. Great for figuring out what is screwing with your data when foo mysteriously changes

    • Quantenteilchen@discuss.tchncs.de
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      14 hours ago

      There are literally university courses which confidently state “Console logging is far more used and better so we won’t talk about a debugger here”!

      Like sure, it’s very likely to be used far more, but that doesn’t mean you shouldn’t at least offer some courses or modules about proper use of a debugger…

    • Trail@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      14 hours ago

      Can you set a breakpoint in production two days ago to debug an incident, though?