You could start here:
For me, I tend to DAIG (debug as I go), so I test each piece of code or logic from the start, by putting the output to a label to see what I am getting, before moving on. This is especially useful when working with local variables, when Do It may not provide the outputs.