Post AzG4RpJUoa457Ao3EW by wolf480pl@mstdn.io
(DIR) More posts by wolf480pl@mstdn.io
(DIR) Post #AzFSL3zY2wigLxp8am by fribbledom@mastodon.social
2025-10-15T23:16:27Z
5 likes, 3 repeats
Debugging skill level:🟢 Beginner: print statements🟡 Intermediate: debugger🔵 Expert: taking a shower
(DIR) Post #AzG4RoCiwH3Nfsd82S by megatronicthronbanks@mastodon.social
2025-10-16T05:36:52Z
0 likes, 1 repeats
@fribbledom Beginner: print statementsIntermediate: debuggerExpert: print statements
(DIR) Post #AzG4RpJUoa457Ao3EW by wolf480pl@mstdn.io
2025-10-16T06:26:07Z
0 likes, 0 repeats
@megatronicthronbanks@fribbledom This.Though these days you can use dtrace / bpftrace to insert print statements at runtime, which is IMO a much better experience than adding them in the source codex rebuilding, and restarting the program
(DIR) Post #AzGA79YWxSZfXVMclc by megatronicthronbanks@mastodon.social
2025-10-16T07:29:34Z
0 likes, 0 repeats
@wolf480pl @fribbledom SOWLD!!
(DIR) Post #AzH2qdfzDI9xVmzPfs by psa@masto.ai
2025-10-15T23:19:37Z
0 likes, 0 repeats
@fribbledom Absolutely.Best debugging tips:* Take a shower* Go for a walk* Eat/drink something healthy (no, sugar _won't_ help)* Chat with a rubber duck about it* Chat with a friend/coworker about it* Take a nap
(DIR) Post #AzH2qehnO3CWhgqN8K by billblake2018@liberdon.com
2025-10-16T17:42:55Z
0 likes, 0 repeats
@psa @fribbledom LOL. I use an AI instead of a rubber duck. They're just smart enough to sometimes give useful feedback, and just stupid enough that you can't take anything they say seriously without having given it some thought.
(DIR) Post #AzH2yyydtvH7tMh720 by billblake2018@liberdon.com
2025-10-16T17:44:24Z
0 likes, 0 repeats
@megatronicthronbanks @fribbledom Yep. Sometimes a debugger is the way to go, but these days (55 years programmiing), I just stick in some printfs. Half the time, just figuring out what to print solves my problem.....
(DIR) Post #AzHPyfbuChf4lysa7E by megatronicthronbanks@mastodon.social
2025-10-16T22:02:00Z
0 likes, 0 repeats
@billblake2018 @fribbledom In python, pprint() is my saviour. In javascript the fact you can use {variable} and get console.log() to name the variable in the output is a saviour.
(DIR) Post #AzI7e0YpVmhleROlw8 by megatronicthronbanks@mastodon.social
2025-10-17T06:11:19Z
0 likes, 0 repeats
@billblake2018 @fribbledomI did have a debugger save me a little while back, but I've since found a better solution.The situation was execution passing into precompiled libraries inside a running Docker container, that were doing funniness, and I needed to precisely see what they were doing.My IDE had a way to bind a debugger to docker.I was way impressed, but it was still a house of cards!:blobcatcoffee: