|
-
Apr 29th, 2006, 12:40 AM
#1
Thread Starter
Fanatic Member
debug a form
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
-
Apr 29th, 2006, 12:56 AM
#2
Re: debug a form
I tried debug.print but it didn't work
Why not? A simple Debug.Print nc, nt nb in the proper place will print output to the immediate window.
Other debugging tools are the Watch and Local Windows (under the View menu)
-
Apr 29th, 2006, 10:27 AM
#3
Addicted Member
Re: debug a form
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:
-
Apr 29th, 2006, 01:50 PM
#4
Lively Member
Re: debug a form
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!
I'm Still learning!
satisfied/not satisfied, PLEASE TAKE SOME TIME TO rate me accordingly.
Ur opinions helps me to be better!
Appreciation Triggers Another Good Deeds.
-
Apr 29th, 2006, 02:09 PM
#5
Re: debug a form
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|