2012-04-25 29 views

回答

0

MDbg可以捕獲「本地」變量 - 我認爲這也意味着staic。如果變量與堆棧幀相關聯,則可以使用GetActiveLocalVars函數獲取該值。

MDbgThread t = proc.Threads.Active; 
MDbgFrame f=t.CurrentFrame; 
foreach (MDbgValue v in f.Function.GetActiveLocalVars(f)) 
           { 
            Console.WriteLine(v.Name); 
            Console.WriteLine(v.Value); 
           }