- Set a breakpoint on a line of code where you want to start stepping through the code (F9 to set breakpoints)
- Run the program from the IDE (I think it's F5 in 2008)
- Once the breakpoint hits, you can see what all your variables contain and all that good stuff. To step through the code line by line there are a few options in the debug menu:
1) "Step Over" steps to the next line of code in the current function
2) "Step Into" steps into any function call on the current line.
3) "Step Out" steps out of the current function (runs until the function returns)
4) Or you can set another breakpoint a few lines ahead and run.
All of the "Step" options have keyboard shortcuts but I can never remember which is which. They also are on the toolbar, so hover over some options until you find them.