Sunday, October 21, 2007

Debugging Tip: Take a break

In a Programmers life, debugging is an indispensable part. Many of the debugging are interesting, and sometimes addictive. It becomes so addictive that u cant concentrate on other works, until that bug is fixed or that problem is solved. Sometimes the debugging can take u to one more level namely "frustration". This happens for the most complex problems, less reproducible issues. If u see that the issue takes u in a recursive ride, landing in the same problem again and again, and no window of resolution, u might get bogged up in the same "square 1" position.
One better way to handle this situation is to "take a break". Depending on the level of frustration, u got to take a break. If its minor issue, u can just step out from ur cubicle, have a chat with ur friends, Go out for a walk, Grab the newspapaer in the reception lobby and spend some time in TT room. If it is very complex issue, and u had spend many days fighting at the issue, take a long break, half a day or a day. Change ur mind, so that u forget the code that u are looking for days. When u comeback from such break, I bet u, u wud find a break through in ur debugging.
Happy Debugging !

No comments: