I've been trying to find a way to render \r\n as actual newlines in the immediate and command window in my VB.NET 4.5.1 application. I came across this question which teaches about the nq specifier, but it appears to apply only to C#. In VB.NET, nq doesn't even appear to work because I get Expression expected printed back out at me.
Is there a different way to make newlines actually show as separate lines in the immediate or command window in VB.NET?
I've discovered that the solution is to use
System.Diagnostics.Debug.Print(). To reproduce the original issue, entering this into the Immediate window...? "a" & vbCrLf & "a"...just returns this:
"a a"However, using this...
System.Diagnostics.Debug.Print("a" & vbCrLf & "a")...actually shows the newline: