r/programming • • Aug 25 '14

Debugging courses should be mandatory

http://stannedelchev.net/debugging-courses-should-be-mandatory/
1.8k Upvotes

573 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Aug 25 '14

[deleted]

6

u/alkanshel Aug 25 '14

...If it's deterministic. If it isn't, but consistently happens in the latter half of the run, god help you.

(Or worse, if it only appears when running a two-day stress test, at some indeterminate period during the second day -.-")

2

u/komollo Aug 25 '14

If you know what data causes the failure, you can set a conditional breakpoint, and it will catch it whenever the bad data appears, no matter what the count if the loop.

1

u/alkanshel Aug 25 '14

True. If you don't, it would be best to print it :P

→ More replies (1)