I am trying to evaluate a C++ program by using the debugger options in Visual C++ .NET 2003. I have picked a Watch window and placed the variables in it that I need to monitor. I am using the "step into" function to invoke execution of the code. The debugger seems to work fine for a few steps, but then my screen shows other outputs that, frankly, I don't have any idea what they are about. Could you tell me what is happening and why I don't see my variables any more in the Watch window?
If I read your question correctly, it sounds like you've stepped into a function, so the values you placed in the Watch window are no longer in scope, so the debugger can't evaluate them. If you want to watch items up the stack, enter them using the context identifier scope in the Watch window: {function,source file,exe/dll name}variable. If the function is Foo, the source file is MyFile.CPP, the binary is BAR.EXE", and the viable is "i" the entry looks like the following: {Foo,MyFile.CPP,BAR.EXE}i

This was first published in August 2003