提交 cee204af 编写于 作者: S Saul Rennison 提交者: Kevin Ransom (msft)

Show map keys in the Name column in the debugger Locals window (#2862)

上级 f9b59203
......@@ -629,12 +629,20 @@ namespace Microsoft.FSharp.Collections
#if !FX_NO_DEBUG_PROXIES
and
and
[<Sealed>]
MapDebugView<'Key,'Value when 'Key : comparison>(v: Map<'Key,'Value>) =
[<DebuggerBrowsable(DebuggerBrowsableState.RootHidden)>]
member x.Items = v |> Seq.truncate 10000 |> Seq.toArray
[<DebuggerBrowsable(DebuggerBrowsableState.RootHidden)>]
member x.Items =
v |> Seq.truncate 10000 |> Seq.map KeyValuePairDebugFriendly |> Seq.toArray
and
[<DebuggerDisplay("{keyValue.Value}", Name = "[{keyValue.Key}]", Type = "")>]
KeyValuePairDebugFriendly<'Key,'Value>(keyValue : KeyValuePair<'Key, 'Value>) =
[<DebuggerBrowsable(DebuggerBrowsableState.RootHidden)>]
member x.KeyValue = keyValue
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册