A core feature of Visual Studio that allows developers to inspect, analyze, and troubleshoot code during execution.
Old question but I just encountered this and have a workaround. In my case, I have a vb.net Windows Forms app (yes I know...) and I have the form class declared ".... Class frmX / Inherits System.Windows.Forms.Form / etc. etc."
Now inside this class (class methods code) the form instance is referred to by the same name: frmX. Example:
Class frmX
Inherits System.Windows.Form.Form
Sub Foo()
' I set a breakpoint on following line :
frmX.textBox1.Text = "The width is about to change!"
frmX.textBox1.Width = 100
etc.
Now if I stop on the last code-line and QuickWatch on it, no form of expression like e.g "frmX.textBox1.Width" works -- I get the same error as OP ( "instance required").
QuickWatch clearly thinks 'frmX' is the class name (which it IS, but it is ALSO a variable that points to an INSTANCE of that class which is what the compiler understands and is what I want QuickWatch to understand also, but alas it does not).
MY SOLUTION is to fully qualify the "frmX" instance in my expression. Instead of entering into the QuickWatch expression box
frmX.textBox1.Width
...I must enter instead...
My.Forms.frmX.textBox1.Width
and then it works fine. I am forcing QW to interpret "frmX" in the proper context. Hope this helps.
]