View unanswered posts | View active topics



Reply to topic  [ 1 post ] 
Breakpoints in external loaded swf 
Author Message
Member

Joined: Sat Aug 13, 2011 10:30 am
Posts: 15
Reply with quote
I describe problem here: viewtopic.php?f=6&t=10775
and now make updates for FlashDebugger code.


BreakpointManager.cs
line 237 add function:
Code:
 public void ForceBreakPointUpdates()
        {
            foreach (BreakPointInfo bp in m_BreakPointList)
            {
                bp.Location = null;
            }
        }




FlashInterface.cs
line 838:
Code:
         if (nFiles > 0)
         {
               
                //=== UPDATE: m_Session.getSwfs() can return items with equalent swf name and sources loaction, if movie reload external .swf more that once time.
                //=== reverse loop for take latest loded swf first, and ignore old swf.
                SwfInfo[] swfInfo = m_Session.getSwfs();
            for (int swfC = swfInfo.Length-1; swfC >= 0; swfC--)
            {
                    SwfInfo swf = swfInfo[swfC];
                //=== UPDATE END ================================================================================================================================

               if (swf == null) continue;
               try
               {



DebuggerManager.cs
line 386:
Code:
private void flashInterface_ScriptLoadedEvent(object sender)
      {
 //=== UPDATE: force all breakpoints update after new as code loaded into debug movie =================
                        PluginMain.breakPointManager.ForceBreakPointUpdates();
 //=== UPDATE END=====================================================================
         m_FlashInterface.UpdateBreakpoints(PluginMain.breakPointManager.GetBreakPointUpdates());
         m_FlashInterface.Continue();
      }


Sun Jun 02, 2013 6:36 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.