Debugging when problems arise
If you have been a programmer for a while, chances are that you are familiar with the classic debugging technique known as trace code. In case you are not familiar with trace code, let's break it down for you. In this debugging technique we introduce
print statements throughout the code under inspection in order to show information regarding variables or whether the program has taken a certain path. With this definition in mind, you might be wondering, why would you need a debugger? The answer is simple and twofold. First, using a debugger you can achieve the same results without too much fuss. When applying trace code, you need to include print statements, recompile the program (or the particular chunk ...