title: How to debug AJAX (POST) with PhpStorm and Xdebug?
body: <p>I have configured PhpStorm to debug HTTP GET - but only when I load a page directly.</p>
  
  <p>When I want to debug AJAX, I take the URL which my JS would request and create a PhpStorm configuration to debug it.</p>
  
  <p>Not particularly elegant, is it?</p>
  
  <p>And, of course, I can't do that for POST requests (or can I?).</p>
  
  <p>Ideally, I would like to load my AngularJs app in the browser (Chrome) and be able to breakpoint and debug the backend in PhpStorm.</p>
  
  <p>I googled a lot, and found much that came close, but I can't find the answer :-(</p>
  
  <p>Who can help?</p>
  
  <hr>
  
  <p>[Update] a few years later, and I am using the excellent and free <a href="https://www.getpostman.com/" rel="noreferrer">Postman</a> to test both GET and POST.</p>