public override void ActivateEvent(Mono.Debugger.Event ev) { if (Process.MainThread.IsStopped) { ev.Activate(Process.MainThread); } else { ThrowNotSupported("Breakpoints can't be changed while the process is running."); } }
public override void EnableEvent(Mono.Debugger.Event ev, bool enable) { if (enable) { ev.Activate(Process.MainThread); } else { ev.Deactivate(Process.MainThread); } }
protected override void Action(ScriptingContext context, Event handle) { if (!handle.IsActivated && handle.NeedsActivation) handle.Activate (context.Interpreter.CurrentThread); }