示例#1
0
 public void Stop()
 {
     if (_debugServer.InDebug)
     {
         FireEvent(Events.Debug_Stopping);
         _debugServer.Stop();
         FireEvent(Events.Debug_Stopped);
     }
 }
示例#2
0
        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;
        }