C-SHARP - 7.6 Local and automatic window
Two windows in the Visual Studio debugger are particularly useful for watching the state of a C# program while it runs: the Locals window and the Autos window. They answer the same question — what are the interesting variables right now? — but with two different strategies.
The Locals window displays every local variable accessible in the current scope: method parameters, locally declared variables, and the this reference if you're inside an instance method. It's an exhaustive, stable view of the immediate environment. At every step of execution, values update automatically, and values that just changed are highlighted.
The Autos window offers a more targeted selection. Visual Studio analyzes the current line and the surrounding few lines to guess which variables and expressions are relevant. The goal is to reduce noise: if a line doesn't touch anything, you mostly see what's being manipulated around your breakpoint. On a long method with many local variables, this view is often more practical than the full Locals list.
Both windows let you interactively explore objects by expanding their properties via the triangle on the left, and even let you change a variable's value on the fly to test an alternative scenario without restarting the program. Combined with the Call Stack and watches, they form the complete working environment during a C# debugging session.