Hacker News new | ask | show | jobs
by stiff 4839 days ago
Bisecting the code is a pain in the ass. Until back-in-time debugging is more of a standard, another alternative is simply to log a lot of stuff and include a bug reporting tool in whatever software you ship that will attach the log to the bug report.
1 comments

The problem with logs is that programmers log the data that they believed, at the time they wrote the code, would be useful to help diagnose problems. However, many bugs arise from conditions that programmers failed to anticipate, and thus may have failed to log.

Also, there are important things that you just can't log for legal or ethical reasons. For example, no user of a browser would be happy to know that the current URL they were viewing or their POST data was sent back to a browser developer (or even saved in a local file) without their explicit permission.