Problem solve Get help with specific problems with your technologies, process and projects.

How to use a Watch window

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

Dig Deeper on Windows Azure development

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.