502 Bad Gateway when debugging php 7 Xdebug 2.4.0RC3 mac os
<p>I'm using the latest versions of <code>PHP (7.0.2)</code> and <code>xdebug (2.4.0RC3)</code> with <code>phpstorm 9.0.2</code> and when I start debugging I immediately get the </p>

<pre><code>error "502 Bad Gateway"
</code></pre>

<p>Sometimes I manage to step through a few lines of code but then I get the error anyway. </p>

<p>When I had previous versions of <code>PHP (5.6)</code> and <code>xdebug</code> everything was great.</p>

<p>P.S. php, nginx and xdebug are installed with homebrew.</p>