240
Debugging (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] Lojcs@lemm.ee 5 points 3 days ago* (last edited 3 days ago)

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

[-] huf@hexbear.net 3 points 3 days ago

does anything flush the buffers after the print, but before the break? otherwise, if the stream you're printing to is buffered, you're not necessarily gonna see any output

[-] Lojcs@lemm.ee 3 points 3 days ago

I don't know, I just use printf

load more comments (2 replies)
this post was submitted on 20 Nov 2024
240 points (98.4% liked)

Programmer Humor

32559 readers
945 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS