Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Immediate Window inserts line breaks in output

I find myself debugging REST services lately and that involves visualising a lot of JSON.

When I have receive a JSON string and attempt to print it to the Immediate Window using the command ?jsonString,nq, the string is printed with a line break every 1026 characters.

This is annoying because it means every time I print, copy and paste the string I have to find/replace the CRLFs so that the string is valid JSON.

Is there a way to get devenv to print the string without these line breaks?
Is there some hidden setting for the "width" of the Immediate Window "terminal"?

like image 982
Coxy Avatar asked Nov 22 '25 05:11

Coxy


1 Answers

AFAIK, this behaviour of wrapping at 1024 chars in the immediate window cannot be changed. You could try using the watch window or Shift+F9 after selecting the variable for an instant watch.

like image 67
Ash Avatar answered Nov 24 '25 23:11

Ash



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!