#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    55
    Rep Power
    12

    debugging in vc6


    I've got project with 3 sources in, but when I want to step thru it in debugging mode, it goes straight to winmain, steps thru it and then finishes at return mainloop(). The problem is, the variables I want to look at are in the other sources, and if I put them in to watch, it just says "variable not found".
    So, basically, are the only variables I can look at the one's in winmain? Surely not? Ben
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    55
    Rep Power
    12
    MSDN mentions something about context operators for the variables, but it was very brief, doesn't explain a lot..
  4. #3
  5. No Profile Picture
    Offensive Member
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2002
    Location
    in the perfect world
    Posts
    622
    Rep Power
    28
    Find the function you want,

    Press F9 to place a break point,

    Run app and ensure the code calls the function.

    F5 to run to the next break point

    F10 to step one line

    drag and drop the variables to the 'watch' or 'quick watch' windows.
    The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the Tree of Knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your f***ing mouth shut and hadn't asked any questions.

    Frank Zappa

IMN logo majestic logo threadwatch logo seochat tools logo