• HairHeel
    link
    fedilink
    English
    arrow-up
    34
    arrow-down
    1
    ·
    1 year ago

    Value watching is just printf; change my mind

    • 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