Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        private void flashInterface_BreakpointEvent(object sender)
        {
            Location loc = FlashInterface.getCurrentLocation();

            if (PluginMain.breakPointManager.ShouldBreak(loc.getFile(), loc.getLine()))
            {
                UpdateUI(DebuggerState.BreakHalt);
            }
            else
            {
                FlashInterface.StepResume();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        private void flashInterface_BreakpointEvent(object sender)
        {
            Location loc = FlashInterface.getCurrentLocation();

            // todo checking for loc here, but should handle swfloaded case and wait with breakpoint event
            if (loc != null && PluginMain.breakPointManager.ShouldBreak(loc.getFile(), loc.getLine()))
            {
                UpdateUI(DebuggerState.BreakHalt);
            }
            else
            {
                FlashInterface.StepResume();
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 private void UpdateUI(DebuggerState state)
 {
     if ((PluginBase.MainForm as Form).InvokeRequired)
     {
         (PluginBase.MainForm as Form).BeginInvoke((MethodInvoker) delegate()
         {
             UpdateUI(state);
         });
         return;
     }
     CurrentLocation = FlashInterface.getCurrentLocation();
     UpdateStackUI();
     UpdateLocalsUI();
     UpdateMenuState(state);
     (PluginBase.MainForm as Form).Activate();
 }
Ejemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 private void UpdateUI(DebuggerState state)
 {
     if ((PluginBase.MainForm as Form).InvokeRequired)
     {
         (PluginBase.MainForm as Form).BeginInvoke((MethodInvoker) delegate()
         {
             UpdateUI(state);
         });
         return;
     }
     try
     {
         CurrentLocation = FlashInterface.getCurrentLocation();
         UpdateStackUI();
         UpdateLocalsUI();
         UpdateMenuState(state);
         (PluginBase.MainForm as Form).Activate();
     }
     catch (PlayerDebugException ex)
     {
         ErrorManager.ShowError("Internal Debugger Exception", ex);
     }
 }