title: How to debug Flash/Flex in two browsers?
body: <p>I have a <em>Flex 4</em> application which connects to <em>ASP.NET</em> webservice based on <em>FluorineFx</em>. It is authenticated by cookies via <code>RemoteObject.setCreadentials()</code></p>
  
  <p>Both applications connect to <em>FMS</em> server and talks to each other via <em>RTMFP</em> direct connection (P2P).</p>
  
  <p><strong>I want to debug both instances of this application in <em>Firefox</em> and <em>Internet Explorer</em> at one time by single click (F11).</strong></p>
  
  <p>Now I can debug only in one browser by running Debug in Flash Builder 4. I have created double browser runner with bat file registered as default browser in <code>Preferences &gt; General &gt; Web browser</code> that looks like this:</p>
  
  <pre><code>start "IE" /b "c:\Program Files (x86)\Internet Explorer\iexplore.exe" -private %1
  start "FF" /b "c:\Program Files (x86)\Mozilla Firefox\firefox.exe" -private %1
  </code></pre>
  
  <p>But this connects the debugger only to firstly run instance of the application in <em>Internet Explorer</em>.</p>
  
  <p><strong>How can I attach to and debug both instances?</strong></p>
  
  <p>Thanks.</p>