Fix Span Debugger Display String to correctly show the string contents (#27338)
authorAhson Khan <ahkha@microsoft.com>
Thu, 22 Feb 2018 01:37:58 +0000 (17:37 -0800)
committerJan Kotas <jkotas@microsoft.com>
Thu, 22 Feb 2018 07:35:54 +0000 (23:35 -0800)
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
src/mscorlib/shared/System/ReadOnlySpan.Fast.cs
src/mscorlib/shared/System/ReadOnlySpan.cs
src/mscorlib/shared/System/Span.Fast.cs
src/mscorlib/shared/System/Span.cs

index 2a30b2a927f5bfbb6b958283df73edf5012122e7..9bf3f211a87b54b1c3ec2b2ea01ae081a47a4a09 100644 (file)
@@ -23,7 +23,7 @@ namespace System
     /// or native memory, or to memory allocated on the stack. It is type- and memory-safe.
     /// </summary>
     [DebuggerTypeProxy(typeof(SpanDebugView<>))]
-    [DebuggerDisplay("{DebuggerDisplay,nq}")]
+    [DebuggerDisplay("{ToString(),raw}")]
     [NonVersionable]
     public readonly ref partial struct ReadOnlySpan<T>
     {
index 4d747605ad573c24e3acda5b369334c107de6f79..906a3c43176aa8995bb7329b7e0dee4f859acfa8 100644 (file)
@@ -18,7 +18,7 @@ namespace System
     /// or native memory, or to memory allocated on the stack. It is type- and memory-safe.
     /// </summary>
     [DebuggerTypeProxy(typeof(SpanDebugView<>))]
-    [DebuggerDisplay("{DebuggerDisplay,nq}")]
+    [DebuggerDisplay("{ToString(),raw}")]
     public readonly ref partial struct ReadOnlySpan<T>
     {
         /// <summary>
index e0d4ec3227682e32a13e7fcc72060133573134ad..36493cd883222c9bae0474087bdc4b7dd5675a8b 100644 (file)
@@ -23,7 +23,7 @@ namespace System
     /// or native memory, or to memory allocated on the stack. It is type- and memory-safe.
     /// </summary>
     [DebuggerTypeProxy(typeof(SpanDebugView<>))]
-    [DebuggerDisplay("{DebuggerDisplay,nq}")]
+    [DebuggerDisplay("{ToString(),raw}")]
     [NonVersionable]
     public readonly ref partial struct Span<T>
     {
index 106c0f7d5d49524c1f3deb2b8f78720ef7ab6d58..78733515cdb841b14ab8698c6c863149ac66a4c9 100644 (file)
@@ -18,7 +18,7 @@ namespace System
     /// or native memory, or to memory allocated on the stack. It is type- and memory-safe.
     /// </summary>
     [DebuggerTypeProxy(typeof(SpanDebugView<>))]
-    [DebuggerDisplay("{DebuggerDisplay,nq}")]
+    [DebuggerDisplay("{ToString(),raw}")]
     public readonly ref partial struct Span<T>
     {
         /// <summary>