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