Debugging windows
Visual Basic 5’s source-level debugger has some improvements over the Visual Basic 4 version. Instead of having just a single Debug window, you now have three debugging windows as part of the IDE:
-
The Immediate window is a drop-in replacement of the old Debug window, with all the familiar abilities such as being able to execute single-line statements or subroutines.
-
The Locals window is rather cool. It displays the name, value, and data type of each variable declared in the current procedure. It can also show properties. You can change the value of any variable or property merely by clicking on it and then typing the new value. This can save a lot of time during debugging.
-
The Watches window also saves you some time, allowing you to watch a variable’s value without having to type any statements into the Immediate window. You can easily edit the value of any Watch expression you’ve set or the Watch expression itself by clicking on it, just as you can in the Locals window.