本文整理匯總了C#中Mono.Debugging.Client.DebuggerSession.FetchFrames方法的典型用法代碼示例。如果您正苦於以下問題:C# DebuggerSession.FetchFrames方法的具體用法?C# DebuggerSession.FetchFrames怎麽用?C# DebuggerSession.FetchFrames使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Mono.Debugging.Client.DebuggerSession
的用法示例。
在下文中一共展示了DebuggerSession.FetchFrames方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: AppendThreads
void AppendThreads (TreeIter iter, ProcessInfo process, DebuggerSession session)
{
var threads = process.GetThreads ();
Array.Sort (threads, (ThreadInfo t1, ThreadInfo t2) => t1.Id.CompareTo (t2.Id));
session.FetchFrames (threads);
var activeThread = session.ActiveThread;
foreach (var thread in threads) {
var name = thread.Name == null && thread.Id == 1 ? GettextCatalog.GetString ("Main Thread") : thread.Name;
var weight = thread == activeThread ? Pango.Weight.Bold : Pango.Weight.Normal;
var icon = thread == activeThread ? Gtk.Stock.GoForward : null;
if (iter.Equals (TreeIter.Zero))
store.AppendValues (icon, thread.Id.ToString (), name, thread, (int)weight, thread.Location, session);
else
store.AppendValues (iter, icon, thread.Id.ToString (), name, thread, (int)weight, thread.Location, session);
}
}