title: XDebug session in PhpStorm stuck on curl_exec call
body: <p>I have the following simplified API:</p>
  
  <pre><code>http://localhost/app/apiA
  http://localhost/app/apiB
  </code></pre>
  
  <p>where <code>apiA</code> does some processing and then performs these simple operations so that <code>apiA</code> calls <code>apiB</code>:</p>
  
  <pre><code>$curl = curl_init();
  curl_setopt($curl, CURLOPT_URL, site_url('apiB'));
  //various other options
  $response = curl_exec($curl);
  </code></pre>
  
  <p>Now I put a breakpoint in PhpStorm right on the <code>curl_exec</code> call in <code>apiA</code> and another right on the first line of the <code>apiB</code> method. What happens is that, first of all, XDebug is stuck on the <code>curl_exec</code> call and will remain there indefinitely; however if I press Break, stopping the interpreter, XDebug breaks <em>but</em> activates my breakpoint in <code>apiB</code>!</p>
  
  <p>I'd like it to perform the call to <code>curl_exec</code> and hit the breakpoint in <code>apiB</code> and then come back to the first breakpoint after it's completed. Is there any way to configure XDebug and/or PhpStorm to do this?</p>