Albin7326@suppo.fi to Programmer Humor@lemmy.ml · 2 years agoLet the debugger do its job.suppo.fiimagemessage-square74fedilinkarrow-up1429arrow-down148
arrow-up1381arrow-down1imageLet the debugger do its job.suppo.fiAlbin7326@suppo.fi to Programmer Humor@lemmy.ml · 2 years agomessage-square74fedilink
minus-squareBonehead@kbin.sociallinkfedilinkarrow-up3arrow-down1·2 years agoDon’t delete printf statements…wrap them in a “if (DEBUG)” function. You still reduce the log storage costs while simultaneously expanding the code base and giving yourself a way to debug the system later.
Don’t delete printf statements…wrap them in a “if (DEBUG)” function. You still reduce the log storage costs while simultaneously expanding the code base and giving yourself a way to debug the system later.