From the course: Visual Basic Essential Training

Unlock this course with a free trial

Join today to access over 24,500 courses taught by industry experts.

Use the watch windows to see runtime data

Use the watch windows to see runtime data - Visual Basic Tutorial

From the course: Visual Basic Essential Training

Use the watch windows to see runtime data

- [Instructor] In this video, we'll look at three dockable tool windows that pull debug information from your code and show it in a live grid. Plus we'll look at the debug tool tip called "The Data Tip". I've hit a break point here and what is happening here is I substantiate a couple of variables, make a call to get random odd number, and then I'll make a call to the code here in this code for watch example. This will allow me to work with the different windows that show up here in the lower left of your screen. We'll look at autos, locals, and watch one. First of all, we'll talk about the data tip. Now, the way the data tip works is you hover over an item like this case is variable. Then I can see what value is stored in there. So it tells me that odd is set to zero. When I look at this variable, which is my instance of the number generator, I see that I haven't instantiated it yet. So let's step through the code. Now at this point, gen should be set to an instance of debug.number…

Contents