2024-11-20 π programmerhumor
Debugging
https://lemmy.ml/pictrs/image/757b6a74-234c-4fb7-9c11-8e7969f4688c.png
2024-11-21 interdimensionalmeme
Oh so itβs not just me
2024-11-21 lord_ryvan β 1π¬
As soon as I make more than a script, Iβm using a debugger.
I really canβt wrap my head around how so many of my colleagues in the professional work field just print wherever until they find [β¦]
One aspect I feel is never talked about is that setting up the debugging more often than not takes you out of the mental space of the problem you are trying to solve. A console log is basically [β¦]
Printing debug messages didn't do much for me for this one time where a class was overflowing a buffer right in the constructor, and everything was fine creating an instance of it, passing it [β¦]
2024-11-20 TheDoctor β edited
I did both of these at once last week.
[β¦]
Added a breakpoint. Debugger didnβt break.
[β¦]
2024-11-20 Lojcs β edited β 3π¬
Kind of unrelated, why does c sometimes fail to print if it hits a breakpoint right after a print while debugging? Or if it segfaults right after too iirc
βFine! Iβll set up debugging! Stupid piece ofβ¦β - Me at some point, a little too late, into most projects
Why not both
2024-11-20 lakemalcom10 β 1π¬
Debug single threaded code, log multi threaded code.
2024-11-20 flashgnash β 1π¬
I miss having a functioning debugger after moving to helix/neovim
ββββ
ββββ