@Albin7326@suppo.fi to Programmer Humor@lemmy.ml • 2 years agoLet the debugger do its job.suppo.fiimagemessage-square73fedilinkarrow-up1423arrow-down148
arrow-up1375arrow-down1imageLet the debugger do its job.suppo.fi@Albin7326@suppo.fi to Programmer Humor@lemmy.ml • 2 years agomessage-square73fedilink
minus-square@MooseBoys@lemmy.worldlinkfedilink14•2 years agoDebuggers are for when you hit a problem with your code. Logs are for when someone else hits a problem with your code.
minus-square@xmunk@sh.itjust.workslinkfedilink4•2 years agoNah, debug("Reached line 12"); is always acceptable. Using a formal debugger is a matter of personal preference - but everyone needs to be familiar with it at at least a surface level for whenever a coredump comes in.
Debuggers are for when you hit a problem with your code. Logs are for when someone else hits a problem with your code.
Nah,
debug("Reached line 12");
is always acceptable. Using a formal debugger is a matter of personal preference - but everyone needs to be familiar with it at at least a surface level for whenever a coredump comes in.