The Watches FactBox

The Watches FactBox is used to view the values of variables. You can select some variables from the Debugger Variables List window and add them to the Watches FactBox. Those variables will be shown until you delete them, even if they run out of scope. If this happens, the <Out of Scope> text will be displayed in the Value column of the Watches FactBox. All the variables added to the Watches FactBox persist between debugging sessions.

There are two ways to add a variable to the Watches FactBox:

  • From the Debugger Variable List window
  • From the Code viewer

Adding variables from the Debugger Variables List window

To add variables from the Debugger Variables List window, follow these steps:

  1. On the Debugger page, click on the Variables option found on the Actions pane. The Debugger Variable List page will open, as shown in the following screenshot:
    Adding variables from the Debugger Variables List window
  2. Select a variable from the list and click on the Add Watch icon. Then click on the Close button.
  3. Back on the Debugger page, you will see the selected variable on the Watches FactBox. You can view the name of the variable, its value, and its type, as shown in the following screenshot:
Adding variables from the Debugger Variables List window

Adding variables from the code viewer

To add variables from the code viewer, follow these steps:

  1. In the code viewer, hover the mouse pointer over the variable that you want to watch or select it, as shown in the following screenshot:
    Adding variables from the code viewer
  2. A data tip appears, as you can see in the preceding screenshot. Click on the Watch icon found on the left-hand side of the data tip (the glasses with a green plus symbol).
  3. The variable will now be shown on the Watches FactBox, as shown in the following screenshot:
Adding variables from the code viewer
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.8.34