Add to the Data View from the Local Variables View
Use the Local Variables view to add variables to the Data View, either by using the context menu or by dragging and dropping. Choose Add to Data View to add to the existing view, or Add to New Data View to create a new Data View window.
As you step through your program and the focus changes, the variables are evaluated using the scope in which they were added rather than the current scope.
In
Figure 65, the variable
x was added to the Data View at two different scopes from two different, selected stack frames, so reflects a different value.
If a variable goes out of scope, an error is displayed: