@Albin7326@suppo.fi to Programmer Humor@lemmy.ml • 9 months agoLet the debugger do its job.suppo.fiimagemessage-square74fedilinkarrow-up1429arrow-down147
arrow-up1382arrow-down1imageLet the debugger do its job.suppo.fi@Albin7326@suppo.fi to Programmer Humor@lemmy.ml • 9 months agomessage-square74fedilink
minus-square@HairHeel@programming.devlinkfedilinkEnglish32•9 months agoValue watching is just printf; change my mind
minus-square@leo85811nardo@lemmy.worldlinkfedilink7•9 months agoAckchyually, 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
Value watching is just printf; change my mind
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