Show All/Selected Local Variables
The icon on the top left-hand side of the Variables window controls which variables are displayed. When in the form of open curly braces , it will show all local variables in scope of the function you are currently debugging. If you click on it, it will change to look like the Focus Cursor at PC icon . This provides a hyper focus of the variables in the immediate area of where you are stepping and where the cursor is located. In this form, it will only show local variables on the exact line the cursor is on, as well as on the line before.
Application
Accessing ALL Local Variables
The upper left icon in the Variables window controls the range of local variables being displayed. Clicking on this icon will toggle the window from displaying all the local variables in a particular function, or a specific range of variables. When the icon displays a set of curly braces "", all the local variables within the scope of the current function will be displayed. The image below shows this icon set to display all the local variables in the function.The debug session must be paused within a function in order to see the local variables with just the Variables window. Please note the green bar is paused within the function foo() in the image on the right.