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(); } }); }