C# string value is not fully shown in VS Code Watch Window

Viewed 143

I have a long json string variable in my C# project. When I try to inspect this variable in VARIABLES or WATCH - I am only shown the beginning of the string. Rest of the text is hidden.

Even when I try to copy value only the beginning of the text is copied.

What can I do to show the entire value (or at least to copy the entire value)?

2 Answers

In the quickwatch or Watch window, there is an watch icon clicking on which will show the entire value of the variable. You can also choose what type of visualizer to view in.

enter image description here

enter image description here

My bad...misread the question. Did you try below options:

Option 1: enter image description here

Option 2: in Debug console you can type your variable and view the values and copy them as well

enter image description here

Related