When you debug your program, and for example you set a breakpoint as in here:
void foo(string s)
{
(*) if (s=="bar")
...
}
(*) denotes breakpoint
you can move mouse cursor over "s" and inspect the content of it.
The question is how to do the same (i.e. inspect object) but not any argument or variable, but "this" object?
My case: I get exception at some point, I trace call stack, and let's say I would like to inspect "this" object of the 4th method of the call stack (for example).
Quick Watch Window
thisAdd Watch Window
Debug -> Windows -> Watch -> Watch 1Name field this and press EnterImmediate Window
Debug -> Windows -> Immediate Windowthis and press EnterIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With