예제 #1
0
        private void _debugger_StatusChanged(object sender, StatusChangedEventArgs e)
        {
            var state = e.NewStatus;

            _dispatcher.InvokeAsync(() => {
                IsNotBusy = state == DEBUG_STATUS.BREAK;

                if (state == DEBUG_STATUS.NO_DEBUGGEE)
                {
                    Prompt      = Constants.NoTarget;
                    CommandText = string.Empty;
                }
                else if (!IsNotBusy)
                {
                    Prompt = Constants.Busy;
                }
                else
                {
                    _debugger.OutputPrompt();
                }
            });
        }