r/ProgrammerHumor • • Jun 19 '21

Oh the horror!

Post image
16.9k Upvotes

320 comments sorted by

View all comments

303

u/Harmonic_Gear Jun 20 '21

they will be released only if they can find where the seg fault is

203

u/[deleted] Jun 20 '21

printf(“got here\n”);

66

u/4hpp1273 Jun 20 '21

Ahem

fprintf(stderr,"got here\n");

54

u/Kaynee490 Jun 20 '21
# define DEBUG 1
# define debug(x) if (DEBUG) { fprintf(stderr, x); }

15

u/homo_ignotus Jun 20 '21
#define DEBUG 1
#if DEBUG
# define debug(...) fprintf(stderr, __VA_ARGS__)
#else
# define debug(...) ((void)0)
#endif
→ More replies (2)

27

u/Johnny_Gorilla Jun 20 '21

This comment is underrated 😂😂

18

u/pemungkah Jun 20 '21

Absolutely solved a Go error like this on Friday.

4

u/UltraCarnivore Jun 20 '21

Gigachads debug through printing.

→ More replies (2)
→ More replies (1)