Exemple #1
0
        static void OnDebugEvent(object sender, DebuggerEventArgs e)
        {
            switch (e.DebuggerEvent)
            {
            case DebuggerEvent.Starting:
                ClearDebugMessages();
                break;

            case DebuggerEvent.Started:
                debuggerStarted = true;
                break;

            case DebuggerEvent.Stopped:
                debuggerStarted = false;
                break;
            }

            if (DebugEvent != null)
            {
                DebugEvent(sender, e);
            }
        }
Exemple #2
0
            void DebuggerService_DebugEvent(object sender, DebuggerEventArgs e)
            {
                var debugger = DebuggerService.CurrentDebugger;
                bool newIsRunning = debugger != null && debugger.IsProcessRunning;
                if (newIsRunning == isRunning)
                    return;

                isRunning = newIsRunning;
                int id = Interlocked.Increment(ref isRunningId);
                if (!isRunning)
                    return;

                var process = GetProcessById(debugger.DebuggedProcessId);
                if (process == null)
                    return;

                Timer timer = null;
                timer = new Timer(a => {
                    timer.Dispose();
                    if (id == isRunningId)
                        SwitchToDebuggedProcessWindow(process);
                }, null, WAIT_TIME_MS, Timeout.Infinite);
            }
Exemple #3
0
        void DebuggerService_DebugEvent(object sender, DebuggerEventArgs e)
        {
            switch (e.DebuggerEvent) {
            case DebuggerEvent.Started:
                MainWindow.Instance.SessionSettings.FilterSettings.ShowInternalApi = true;
                SetRunningStatusMessage();
                MainWindow.Instance.SetDebugging();
                break;

            case DebuggerEvent.Stopped:
                MainWindow.Instance.HideStatus();
                MainWindow.Instance.ClearDebugging();
                break;

            case DebuggerEvent.Paused:
            case DebuggerEvent.Resumed:
            case DebuggerEvent.ProcessSelected:
                OnProcessRunningChanged();
                break;
            }
        }
        static void OnDebugEvent(object sender, DebuggerEventArgs e)
        {
            switch (e.DebuggerEvent) {
            case DebuggerEvent.Resumed:
                SelectedFrame = 0;
                foreach (var textView in MainWindow.Instance.AllVisibleTextViews)
                    Remove(textView);
                break;

            case DebuggerEvent.Stopped:
            case DebuggerEvent.Paused:
                SelectedFrame = 0;
                foreach (var textView in MainWindow.Instance.AllVisibleTextViews)
                    UpdateReturnStatementBookmarks(textView, false);
                break;
            }
        }
Exemple #5
0
        static void OnDebugEvent(object sender, DebuggerEventArgs e)
        {
            switch (e.DebuggerEvent) {
            case DebuggerEvent.Starting:
                ClearDebugMessages();
                break;

            case DebuggerEvent.Started:
                debuggerStarted = true;
                break;

            case DebuggerEvent.Stopped:
                debuggerStarted = false;
                break;
            }

            if (DebugEvent != null)
                DebugEvent(sender, e);
        }