Results 1 to 5 of 5

Thread: debug a form

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2006
    Posts
    977

    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

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    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)

  3. #3
    Addicted Member
    Join Date
    Apr 2006
    Posts
    155

    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:


  4. #4
    Lively Member
    Join Date
    Apr 2006
    Location
    Planet Earth
    Posts
    64

    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.

  5. #5
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    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
  •  



Click Here to Expand Forum to Full Width