• Aabbcc@lemm.ee
    link
    fedilink
    arrow-up
    82
    arrow-down
    2
    ·
    1 year ago

    Because I have nested loops and only want to see certain cases and I’m not smart enough to set up conditional breakpoints or value watching

      • leo85811nardo@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        Ackchyually, value watching in debugger almost guarantee to get the value by address, but printf in some languages can pass by value, unnecessarily make copy of the watched variable, and the value printed is the copied data instead of the original

    • idunnololz@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      Someone should make that bell curve meme with people using print statements at the newb and advanced level. Debuggers are great but I’d say it’s a 50/50 split for me for debugger vs logger when I’m debugging something.