September 5th, 2003, 08:25 AM
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
September 5th, 2003, 08:49 AM
MSDN mentions something about context operators for the variables, but it was very brief, doesn't explain a lot..
September 8th, 2003, 09:53 PM
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.