Albin Jose@suppo.fi to Programmer Humor@lemmy.ml · 1 year agoLet the debugger do its job.suppo.fiimagemessage-square73fedilinkarrow-up1429arrow-down148
arrow-up1381arrow-down1imageLet the debugger do its job.suppo.fiAlbin Jose@suppo.fi to Programmer Humor@lemmy.ml · 1 year agomessage-square73fedilink
minus-squareBonehead@kbin.sociallinkfedilinkarrow-up3arrow-down1·1 year 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.