title: Using Eclipse PDT for debugging Ajax pages with concurrent requests
body: <p>Once I asked this same question but now I can give a test case for it.</p>
  
  <p>The problem resides in debugging in Eclipse PDT when the page sends multiple requests to the server's dynamic pages. Consider a web page as follow:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&gt;
  &lt;script src="link-to-jquery/jquery-1.7.2.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(document).ready(function() {
      var list = $("ol");
      for (var i=0; i&lt;20; i++) {
          list.append($('&lt;li&gt;&lt;img src="/img.php?'+i+'" /&gt;&lt;/li&gt;'));
      }
  });
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;ol&gt;
  &lt;/ol&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>In above page, JQuery is used only to prevent browser from caching the images. And the the <code>img.php</code> reads like this:</p>
  
  <pre><code>&lt;?php
  readfile('some_image.jpg');
  </code></pre>
  
  <p>When I try to debug the first page in the Eclipse PDT, using Zend Debugger, only the first <code>img.php</code> request is made and others are dismissed. A sample output is shown in the attached image file. In the presented case, not loading an image file won't prevent you from debugging the rest of project. But once there's a javascript file which isn't loaded because of this problem, the rest of project won't work as it has to. Does anyone know how can I debug such a page?</p>
  
  <p>Here are my specifications:</p>
  
  <ul>
  <li>PHP Version 5.3.14</li>
  <li>Zend Debugger v5.3</li>
  <li>Eclipse for PHP Developers, Version: 3.0.2</li>
  <li>Apache/2.2.22 (Ubuntu)</li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/aQ67A.jpg" alt="Sample output"></p>