sellingspams@feddit.de to Programmer Humor@lemmy.ml · 2年前6 stages of debuggingi.imgur.comexternal-linkmessage-square25fedilinkarrow-up1459
arrow-up1459external-link6 stages of debuggingi.imgur.comsellingspams@feddit.de to Programmer Humor@lemmy.ml · 2年前message-square25fedilink
minus-squareDonjonMaister@programming.devlinkfedilinkarrow-up18·2年前Stage 4.5: console.log() everything.
minus-squarezqwzzle@lemmy.calinkfedilinkEnglisharrow-up11·2年前And then the logging fixes the subtle timing issue causing the problem.
minus-squaresickmatter@fedia.iolinkfedilinkarrow-up1·2年前Especially if logging ends up spreading a global mutex around the log file.
minus-squaredanc4498@lemmy.worldlinkfedilinkarrow-up7·2年前We have logging software built in, but I can never remember how to turn it on, so I just console.log
minus-square0x4E4F@sh.itjust.workslinkfedilinkarrow-up4·edit-22年前Step 4.6: Get another drive for the logs.
Stage 4.5: console.log() everything.
And then the logging fixes the subtle timing issue causing the problem.
Race conditions are the worst
Good ol’ Heisenbugs.
Especially if logging ends up spreading a global mutex around the log file.
We have logging software built in, but I can never remember how to turn it on, so I just console.log
Step 4.6: Get another drive for the logs.