4
我正在使用通過WinDBG查看崩潰轉儲的SOS.dll。給定一個Dictionary對象的地址,有一個簡單的方法來轉儲它的內容如..有沒有一種簡單的方法來查看使用sos的字典中的鍵值對?
Key1 -> Value1
Key2 -> Value2
...
KeyN -> ValueN
我看有沒有!DumpDictionary命令:(
我正在使用通過WinDBG查看崩潰轉儲的SOS.dll。給定一個Dictionary對象的地址,有一個簡單的方法來轉儲它的內容如..有沒有一種簡單的方法來查看使用sos的字典中的鍵值對?
Key1 -> Value1
Key2 -> Value2
...
KeyN -> ValueN
我看有沒有!DumpDictionary命令:(
沒有,但PSSCOR2/4提供了一些收集看看!dc,尤其是.sosx支持這個:!mdt -e:2。這個命令說要轉儲指定的對象並擴展它2個級別
我在通用字典上試過了,但是它抱怨說: 0:012>!do 014ba5d0 名稱:System.Collections.Generic.Dictionary'2 [[System.String,mscorlib],[System.Int32,mscorlib]] 0:012>!dc 014ba5d0 去轉儲收集通過。 0x014ba5d0不是受支持的Collection對象 .chain顯示:psscor4:image 4.0.0.4,API 1.0.0,內置Tue Feb 01 01 15:39:38 2011 – 2012-04-26 02:02:33
好吧,我想!dc支持的Dictionary。試試!sosex.mdt -e:2或-e:3。 – 2012-04-26 20:56:41
工作!看起來像我的一個開發人員有一個錯誤,因爲密鑰爲空:0:012>!mdt 014ba5d0 -e:3 014ba5d0(System.Collections.Generic.Dictionary'2 [[System.String,mscorlib],[System。 Int32,mscorlib]]) Count = 1 [0](System.Collections.Generic.Dictionary'2 + Entry [[System.String,mscorlib],[System.Int32,mscorlib]])VALTYPE(MT = 73a90790, ADDR = 014be4f0) key:NULL(System .__ Canon) value:0x0(System.Int32) – 2012-04-26 21:09:52