本文整理匯總了C#中Mono.Debugger.Frontend.ScriptingContext.ActivatePendingBreakpoints方法的典型用法代碼示例。如果您正苦於以下問題:C# ScriptingContext.ActivatePendingBreakpoints方法的具體用法?C# ScriptingContext.ActivatePendingBreakpoints怎麽用?C# ScriptingContext.ActivatePendingBreakpoints使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Mono.Debugger.Frontend.ScriptingContext
的用法示例。
在下文中一共展示了ScriptingContext.ActivatePendingBreakpoints方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ActionDone
protected override void ActionDone(ScriptingContext context)
{
if (context.Interpreter.HasTarget)
context.ActivatePendingBreakpoints ();
}
示例2: DoExecute
protected override object DoExecute(ScriptingContext context)
{
Event handle;
if (!address.IsNull) {
handle = context.Interpreter.Session.InsertBreakpoint (
context.CurrentThread, tgroup, address);
context.Print ("Breakpoint {0} at {1}", handle.Index, address);
} else if (location != null) {
handle = context.Interpreter.Session.InsertBreakpoint (
tgroup, location);
context.Print ("Breakpoint {0} at {1}", handle.Index, location.Name);
} else {
handle = context.Interpreter.Session.InsertBreakpoint (
tgroup, type, Argument);
context.Print ("Breakpoint {0} at {1}", handle.Index, Argument);
}
if (gui) {
context.ActivatePendingBreakpoints ();
return handle.Index;
}
if (!context.Interpreter.HasTarget)
return handle.Index;
try {
if (handle.NeedsActivation)
handle.Activate (context.Interpreter.CurrentThread);
} catch {
if (!lazy)
throw;
}
return handle.Index;
}