2 ms·
The best way to find the source of a problem can be summed up in two words: binary search. On the other hand, having witnessed humans physically search for thin
by userbinator 13y ago
The best way to find the source of a problem can be summed up in two words: binary search. On the other hand, having witnessed humans physically search for things in ordered collections, it seems we're instinctively programmed to perform a linear search.
- henrik_w 13y agoIn my experience, good logging is the first step to good debugging. Having good logs lets you find a lot of problems without even debugging "properly" (using a debugger say). http://henrikwarne.com/2014/01/01/finding-bugs-debugger-versus-logging/ http://henrikwarne.com/2014/01/01/finding-bugs-debugger-vers...
- MarkSweep 13y agoGood logs have been especially useful while integrating new motion controls in our wafer handling robot. We have a vendor who's product sometimes does not respond correctly to motion commands. Before logging each movement command, debugging a weird movement error would involve repeatedly moving the robot until the error happened again. Now I just pull the last N commands out of the log file, reproduce the issue, and send a script to the vendor so they can fix it.
- wging 13y agoSomewhat true. Though intuition about the nature of the problem may give you a much better place to start looking than right in the middle. If there's one particular module that is often at fault during a particular scenario, you can often start there rather than at the midpoint.