本文整理汇总了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;
}