Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I remember a friend of mine that I and all our friends tried to help figuring out why two lines of c code never worked when running, but always worked when debugging.

It was a simple while loop and it took as I remember two weeks to spot the mistake, a missing = 0 in the

while (int c; c < x; c++)

The debugger initialized all memory to zero so it never failed when debugging :)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: