CompuServe Thread

#VB debugging

3 messages in this thread
#1557From: Robert F. MonosonOct 5, 1991 8:25 PM
I am a beginner in Visual Basic programming and have a simple (I hope) question. When running a program in the single step mode, is there any way to monitor the value of variables being used by the program? If not, how would I determine the value of the variables at each step? Robert There is 1 Reply.
#1574From: Selden McCabeOct 5, 1991 10:20 PM
If I may chime in, Robert, one way is to make the immediate window visible, then click on it, and type something like PRINT X also, you can put Debug.print "X=";x in your program, and it will print the variable values into the immediate window. The main drawback here is that you have to make the immediate window visible each program step where you want to look at the variables. Does onyone else have a better method? Selden There is 1 Reply.
#1578From: Ted M. YoungOct 5, 1991 11:14 PM
Selden, There's really no other way to monitor variables than the way you suggest (doing a Debug.Print). Although, if you have a mono monitor, and a third-party library such as VBTools, you can print to the mono screen. I do this and it helps a little bit (at least I don't need the immediate window viewable all the time), but it's no replacement for a real VB debugger. – Ted