-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Fix Span Debugger Display String to correctly show the string contents #27338
Conversation
How does it look in vs for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, given it looks good in VS, as @pakrym mentioned 👍
@@ -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}")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default I thought VS rendered most things with ToString(). I could be wrong, but what happens if you remove the DebuggerDisplay attribute entirely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't have it, we end up with the issue mentioned here: #26726 (comment)
With this change (i.e., specifying "raw"), we get the expected result.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. Thanks.
What if you try with |
See #27338 (comment) |
System.Net.Requests.Tests failing on Ubuntu.1604.Amd64.Open:Release-x64 with seg fault:
cc @davidsh, @Priya91, @wfurt, @geoffkizer |
@dotnet-bot test Linux x64 Release Build |
The Tizen build timed out:
cc @dotnet/dnceng, any ideas why? @dotnet-bot test Tizen armel Debug Build |
@ahsonkhan You will need to reach out to the Tizen folks as they are the owners of those legs. I am not sure who specifically that is but @RussKeldorph I believe knows. |
Resolves https://github.com/dotnet/coreclr/issues/16450
Leftover from #26726 (comment)
cc @stephentoub, @khellang, @pakrym, @KrzysztofCwalina