Is there any debugging tool included in Visual Studio?
there are 3 ways:
1 - you include some messagebox with the variable to check it
2 - you click on the grey column on the left of the column with line number (must be a line with code), a red dot will appear and it will put a stop in you code when you run it and you will be able to check the values of the variable
3 - put the keyword "stop" in you code. it does the same than the red dot.