public override void Disconnect(Response response, dynamic args)
        {
            Log.Write($"UnityDebug: Disconnect: {args}");
            Log.Write($"UnityDebug: Disconnect: {response}");
            if (unityDebugConnector != null)
            {
                unityDebugConnector.OnDisconnect();
                unityDebugConnector = null;
            }

            lock (m_Lock)
            {
                if (m_Session != null)
                {
                    m_DebuggeeExecuting = true;
                    m_Breakpoints       = null;
                    m_Session.Breakpoints.Clear();
                    m_Session.Continue();
                    m_Session.Detach();
                    m_Session.Adaptor.Dispose();
                    m_Session = null;
                }
            }

            SendOutput("stdout", "UnityDebug: Disconnected");
            SetResponse(response);
        }
        public override Task <DebugResult> Disconnect()
        {
            if (unityDebugConnector != null)
            {
                unityDebugConnector.OnDisconnect();
                unityDebugConnector = null;
            }

            Debugger.Disconnect();
            return(Task.FromResult(CreateDebugResult("UnityDebug: Disconnected")));
        }
        public override void Disconnect(Response response, dynamic args)
        {
            if (unityDebugConnector != null)
            {
                unityDebugConnector.OnDisconnect();
                unityDebugConnector = null;
            }

            Debugger.Disconnect();
            SendOutput("stdout", "UnityDebug: Disconnected");
            SendResponse(response);
        }
Esempio n. 4
0
        protected override void OnDetach()
        {
            try {
                base.OnDetach();
            } catch (ObjectDisposedException) {
            } catch (VMDisconnectedException) {
            } catch (NullReferenceException) {
            }

            if (currentConnector != null)
            {
                currentConnector.OnDisconnect();
                currentConnector = null;
            }
        }
Esempio n. 5
0
        protected override void OnDetach()
        {
            try {
                Ide.DispatchService.GuiDispatch(() =>
                                                Ide.IdeApp.Workbench.CurrentLayout = UnityProjectServiceExtension.EditLayout
                                                );

                VirtualMachine.Detach();
                base.EndSession();
            } catch (ObjectDisposedException) {
            } catch (VMDisconnectedException) {
            } catch (NullReferenceException) {
            }

            if (currentConnector != null)
            {
                currentConnector.OnDisconnect();
                currentConnector = null;
            }
        }