Broots Waymb
Broots Waymb

Reputation: 4826

How can I view the entire value of a property in the Visual Studio debugger?

I have an object with a property (string, in the form of XML) that is used a few times and leading to unexpected results later on, so I need to find where/how it is changing to do so.
I've tried hovering on the property and pinning it, but I only get the small box that shows ~2 lines of the string. But it is a fairly large string so I'd like to see all or most of it. Kind of like the text/xml visualizer, except I can't take any debugging action in the VS window with that box open.
Is there a way to do this in Visual Studio 2013?

Upvotes: 0

Views: 1771

Answers (2)

Andrei Tanasescu
Andrei Tanasescu

Reputation: 26

Shift + Alt + Q after selecting an expression in code or Locals window for viewing variables related to the last and current line.

Upvotes: 0

LInsoDeTeh
LInsoDeTeh

Reputation: 1038

After hovering the variable, use the magnifier icon left to the value. It will open a window with the variable contents.

Alternatively, add the variable to your Locals/Watch window.

Upvotes: 5

Related Questions