From the course: Visual Studio 2019 Essential Training

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Use the Watch, Locals, and Autos windows

Use the Watch, Locals, and Autos windows - Visual Studio Tutorial

From the course: Visual Studio 2019 Essential Training

Start my 1-month free trial

Use the Watch, Locals, and Autos windows

- [Instructor] In this video, we'll look at three dockable ToolWindows that pull the bug information from your code and show it in a live grid. To start, I will debug this application, so I'll go up and click on this Start button here, click on the Watch Window button, and then, I'm at my breakpoint. So let's take a look at what's across the bottom of the screen. There's a number of debugging windows down here. There's a Call Stack, Breakpoints, all these windows over here. And then, on the lower left-side the screen are the three windows we're looking at, the Autos, Locals, and Watch. The Watch window is where you can add any variable and exam while debugging. The Autos and Local windows are two special Watch windows in which the variables are automatically added by the debugger. They behave very similar to the Watch window, except you cannot add variables yourself. If you don't see these windows, make sure you're at a breakpoint, and then, you can go to the Debug menu and choose…

Contents