May 5, 2013 Leave a comment
Many times people ask me to debug their code, mostly the ones making request is a close friend so denial is not an option. Two most common issues that I have repeatedly faced during the process of debugging are
- No or minimum comments
- No or minimum Indentation
These two issues once solved make the process of debugging much fun. Believe me when I say that one of the reason I love python is because you can do absolutely nothing without correct indentation, which leaves only the issue of comments behind.
Today while debugging a friend’s code I had to indent a large code in order to debug it. Being lazy I went ahead to Google the solution. After not too much effort I found that there is a very easy to use built in functionality in Visual Studio through which we can indent all the code automatically.
Here is the link to article that describes how to use this and some other useful formatting option.