Press F9 on the line where you want the execution to pause. This will add a breakpoint to the code, indicated by a red dot, as shown in the following screenshot. Clicking on the red dot toggles it:
Set the Build Configuration to any of the configurations with Debug in the title (DebugGame Editor or simply DebugGame if you launch it without the editor):
Launch your code by pressing F5(without holdingCtrl), or select theDebug|Start Debuggingmenu option.
When the code reaches the red dot, the code's execution will pause.
The paused view will take you to the code editor in Debug mode. In this mode, the windows may appear re arranged, with Solution Explorer possibly moved to the right, and new windows appearing at the bottom, including Locals, Watch 1, and Call Stack. If these windows do not appear, find them under the Debug | Windows submenu.
Check out your variables under the Locals window (Debug | Windows | Locals).