public void Stop() { // lock (obj) // { active = false; mainThread = null; // } VM.VMStateChanged -= OnVMStateChanged; VM.Detach(); }
public ExecutionProvider(IVirtualMachine vm) { this.vm = vm; this.vm.VMSuspended += VMSuspended; this.vm.Stepped += OnStepped; this.vm.ThreadStarted += OnThreadStarted; this.vm.BreakpointHit += OnBreakpointHit; currentLocation = null; currentThread = null; running = true; }
public ExecutionProvider(IVirtualMachine vm) { this.vm = vm; this.vm.VMSuspended += VMSuspended; this.vm.Stepped += OnStepped; this.vm.ThreadStopped += OnThreadStopped; this.vm.BreakpointHit += OnBreakpointHit; this.vm.AppDomainUnloaded += OnAppDomainUnloaded; currentLocation = null; currentThread = null; running = true; }
private void OnVMStateChanged(IEvent ev) { if (ev.State != State.Start) { LogOnDebug("VM disconnected"); return; } lock (obj) { if (active) { } active = true; mainThread = ev.Thread; } }
private void VMSuspended(IEvent suspendingEvent) { lock (obj) { running = false; if (Suspended != null) { Suspended(suspendingEvent.Thread); } currentThread = suspendingEvent.Thread; var frames = currentThread.GetFrames(); currentLocation = frames.Count == 0 ? new Location("", 0) : frames[0].Location; //foreach (var frame in frames) //{ // LogProvider.Log ("frame:" + frame.Location.LineNumber); //} } }
private void RefreshFrames(IThreadMirror thread) { callFrames = thread.GetFrames (); }
public Event(IThreadMirror thread) : base(null) { threadMirror = thread; request = null; }
private void OnVMStateChanged(IEvent ev) { if (ev.State != State.Start) { LogOnDebug ("VM disconnected"); return; } lock (obj) { if (active) { } active = true; mainThread = ev.Thread; } }
public void Stop() { // lock (obj) // { active = false; mainThread = null; // } VM.VMStateChanged -= OnVMStateChanged; VM.Detach (); }
private void Suspended(IThreadMirror thread) { threads = null; CurrentThread = thread; }
private void VMSuspended(IEvent suspendingEvent) { lock (obj) { running = false; if (Suspended != null) Suspended (suspendingEvent.Thread); currentThread = suspendingEvent.Thread; var frames = currentThread.GetFrames(); currentLocation = frames.Count == 0 ? new Location ("", 0) : frames[0].Location; } }
private void VMSuspended(IEvent suspendingEvent) { lock (obj) { running = false; if (Suspended != null) Suspended (suspendingEvent.Thread); currentThread = suspendingEvent.Thread; var frames = currentThread.GetFrames (); currentLocation = frames.Count == 0 ? new Location ("", 0) : frames[0].Location; //foreach (var frame in frames) //{ // LogProvider.Log ("frame:" + frame.Location.LineNumber); //} } }