Debugging to understand
These days I’m doing lot of debugging in Eclipse in order to find bugs, sometimes to understand my own code which I wrote long time ago.
I found it very helpful to step-through your code and check every assumption you made during the coding are valid.
Changing the variables on the fly to see how your code react is added benefit. After all it makes you a good programmer if you can debug faster.
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
— Brian W. Kernighan and P. J. Plauger in The Elements of Programming Style.
— Anil


