Esempio n. 1
0
        public void Start()
        {
            try
            {
                FlexDbgTrace.Trace("CheckCurrent()");
                if (!CheckCurrent())
                {
                    return;
                }
            }
            catch (Exception ex)
            {
                ErrorManager.ShowError(ex);
                return;
            }

            PluginMain.debugBuildStart = true;

            UpdateMenuState(DebuggerState.Starting);

            if (!File.Exists(Path.Combine(Path.GetDirectoryName(currentProject.ProjectPath), currentProject.OutputPath)))
            {
                // remove this, let other parts deal with it
                ErrorManager.ShowInfo(TextHelper.GetString("Info.CannotFindOutputFile"));
            }
            else
            {
                Start(currentProject.OutputPathAbsolute);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes the plugin
        /// </summary>
        public void Initialize()
        {
            InitBasics();
            LoadSettings();
            AddEventHandlers();
            InitLocalization();
            CreateMenuItems();
            CreatePluginPanel();

            //debug
            FlexDbgTrace.init();
            FlexDbgTrace.IsTraceLog = settingObject.EnableLogging;
            FlexDbgTrace.Trace("--------------------------");
            FlexDbgTrace.Trace("---FlexDbgTrace Start---");
        }