You can use the Watches FactBox to view the values of variables. Variables that you add to the Watches FactBox are displayed until you delete them, even if they go out of scope in the currently executing code. This is different from the Debugger Variable List page, which displays only the variables that are currently in scope. If a variable is out of scope, then <Out of Scope> is displayed in the Value column of the Watches FactBox.
Variables that you add to the Watches FactBox are persisted between debugging sessions.
To add a variable to the Watches FactBox
To add a variable from the code viewer, do the following:
On the Debugger page, in the code viewer, pause the mouse pointer over the variable that you want to add to the Watches FactBox.
A DataTip appears.
In the DataTip, choose the Watch icon to the left of the variable.
To add a variable from the variable list, do the following:
On the Debugger page, choose Variables.
On the Debugger Variable List page, select a variable that you want to add to the Watches FactBox, and then choose Add Watch.