Adding a Variable from the Project Tree In order to add a variable to the Watch window, you can select it in the project tree and then either drag-and-drop it in the Watch window or press the F8 key.