Share via


How to Add Variables to the Watches FactBox in Dynamics NAV

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

  1. To add a variable from the code viewer, do the following:

    1. 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.

    2. In the DataTip, choose the Watch icon to the left of the variable.

  2. To add a variable from the variable list, do the following:

    1. On the Debugger page, choose Variables.

    2. On the Debugger Variable List page, select a variable that you want to add to the Watches FactBox, and then choose Add Watch.

See Also

How to: Remove Variables from the Watches FactBox
Walkthrough: Debugging the Microsoft Dynamics NAV Windows Client