Steps for Debugging a project
Place a breakpoint (Right-click on any line on the source code, select breakpoint, insert breakpoint).
Press F5 for execution.
Click on button 1.
The execution will be stopped at a breakpoint.
To continue line by line execution press F11.
To observe the value of a variable, right-click on a variable name, Add watch.