all groups > visual studio .net debugging > june 2007 >
You're in the

visual studio .net debugging

group:

Weird QuickWatch behavior in VS 2005 SP1



Weird QuickWatch behavior in VS 2005 SP1 Gaetan
6/7/2007 11:16:33 PM
visual studio .net debugging: I am in the process of debugging a WebService application and I noticed a very unusual behavior with
the debugger ...the value assignments does not take effect. Something like this has no effect on
the content of the class member "Description" which is defined as a string:

void myMethod(ref MyClass myClass)
{
myClass.Description = "some text";
}

After single stepping in the code, the content of "myClass.Description" is not changed to "some
text". Whatever was in "myClass.Description" before is unchanged after the statement executes.

Furthermore, when I hover the mouse over "myClass.Description", right click and select "Edit Value"
and change the value, I will see the new value take effect but "QuickWatch..." "myClass.Description"
will still show the original value.

I'm about to loose my mind. I never had that sort of problem before. Help please !!
Re: Weird QuickWatch behavior in VS 2005 SP1 Oleg Starodumov
6/11/2007 9:13:10 AM

[quoted text, click to view]

May be you have several different variables called myClass?

Also, you can try to use tracing / debug output (Debug and Trace classes)
to display the values and check if the application itself works correctly.

--
Oleg
[VC++ MVP http://www.debuginfo.com/]

AddThis Social Bookmark Button