Пример #1
0
        private void BuildAction_BuildFinished(object sender, AssemblyFinishEventArgs e)
        {
            if (!e.Output.Succeeded)
            {
                if (DockingService.ShowMessageBox(null, "There were errors assembling. Would you like to continue and try to debug?",
                                                  "Continue", MessageBoxButtons.YesNo, MessageBoxIcon.Error) == DialogResult.No)
                {
                    return;
                }
            }

            try
            {
                _debuggerService.StartDebugging();
            }
            catch (MissingRomException)
            {
                bool hasRom = PromptForRomFile();
                if (hasRom)
                {
                    Execute();
                }
            }
            catch (DebuggingException ex)
            {
                DockingService.ShowError("Unable to start debugging", ex);
            }
        }
Пример #2
0
        protected override void Execute()
        {
            if (_debuggerService.CurrentDebugger == null)
            {
                return;
            }

            _debuggerService.EndDebugging();
            _debuggerService.StartDebugging();
        }