sabreW4K3@lazysoci.al to Programmer Humor@programming.dev · 2 months agoprint('here1');lazysoci.alimagemessage-square26fedilinkarrow-up149arrow-down11
arrow-up148arrow-down1imageprint('here1');lazysoci.alsabreW4K3@lazysoci.al to Programmer Humor@programming.dev · 2 months agomessage-square26fedilink
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up3·2 months agoecho __LINE__ . "Moo\n"; Honestly if you’re not including the LoC in your debug statement I don’t even fucking understand you. But yeah, senior devs know the power of breadcrumb debugging (because most of us were deeply scarred by gdb).
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up2·2 months agoDid GDB do something bad at some point?
minus-squarequink@lemmy.mllinkfedilinkarrow-up1·2 months agoThat’s console.trace() for all you JS devs out there.
echo __LINE__ . "Moo\n";
Honestly if you’re not including the LoC in your debug statement I don’t even fucking understand you.
But yeah, senior devs know the power of breadcrumb debugging (because most of us were deeply scarred by
gdb
).Did GDB do something bad at some point?
Yes. It breaks points.
That’s
console.trace()
for all you JS devs out there.dbg!()
for Rust users