public void Stop() { if (_debugServer.InDebug) { FireEvent(Events.Debug_Stopping); _debugServer.Stop(); FireEvent(Events.Debug_Stopped); } }
public void Stop() { if (!_running) { return; } _pc = 0; _events.DebugLeave -= EventsOnDebugLeave; _events.DebugEnter -= EventsOnDebugEnter; _events.MemoryChanged -= EventsOnMemoryChanged; _events.Stop(_debugTarget); _server.UnknownData -= ServerOnUnknownData; _server.DebuggerAttached -= ServerDebuggerAttached; // Start the debug server _server.Stop(); _debugTarget = null; _target = null; _state = State.None; DebugStateChanged?.Invoke(); _running = false; }