在调试中可视化列表(或打印到即时窗口)

dr.*_*vil 5 .net debugging immediate-window visual-studio

当我试图查看Dictionary项的内部列表时,我讨厌逐个扩展每个节点.我正在寻找一种更简单的方法来做到这一点.

例如:

我有一个Dictionary对象Dictionary(Of AnotherObject, Integer),我希望AnotherObject在调试期间看到一个列表属性.

通常我会用这个:

For Each item As DictionaryEntry(Of AnotherObject, Integer) in myDict
          Debug.Writeline(item.Name)
Next
Run Code Online (Sandbox Code Playgroud)

但是立即窗口不支持循环.

有没有实用的方法在即时窗口或调试可视化工具中执行此操作?