Hi
I have problems with one form inside the VB6 project.
I want to debug the code to see how the variables change.
I tried debug.print but it didn't work
how can i write a code to debug the variables (integer) nc,nt,nb
Printable View
Hi
I have problems with one form inside the VB6 project.
I want to debug the code to see how the variables change.
I tried debug.print but it didn't work
how can i write a code to debug the variables (integer) nc,nt,nb
Why not? A simple Debug.Print nc, nt nb in the proper place will print output to the immediate window.Quote:
I tried debug.print but it didn't work
Other debugging tools are the Watch and Local Windows (under the View menu)
You watch line by line and what variable is changing and what it changes to by leftclicking on the little tab next to the code:
http://img146.imageshack.us/img146/3125/untitled0xn.jpg
yup, XRsTX is right!
Also, u can :
press the F8 button to step into the codes line by line. This way, u know how ur program executes all the codes!
Hope that will help!
You can also access the Degug|Add Watch menu and, for example, have the program stop when a given variable changes or is equal to a specific value or when some statement is True or False.