Reputation: 8293
In visual studio 2010 if I add a watch to a property of an object, by right clicking the property and going to add watch, in the watch window it just adds the property name instead of object.property name and hence it will also show "xxx does not exist in the current context".
Am I going about this the wrong way or is this a bug in visual studio?
I can get the watch to work by typing object.property manually in the watch window but it seems to defeat the whole purpose of that menu item being there.
Upvotes: 0
Views: 1559
Reputation: 46
I would suggest that you should select the object.property completely and then add it to the watch window.
Upvotes: 3