xdebug with php 7 on ubuntu apache2 not working
<p>actually had that problem and took me allot of time to figure out the solution: (if any previous php versions where installed, make sure to first get completely rid of them. if necessary purge and reinstall apache2 and php7)</p>

<p>first:</p>

<pre><code>&gt; sudo apt-get install php-xdebug
</code></pre>

<p>then edit the php.ini file of php 7 :</p>

<pre><code>&gt; sudo gedit /etc/php/7.0/apache2/php.ini
</code></pre>

<p>and just on the bottom add:</p>

<pre><code>xdebug.remote_enable = On
</code></pre>

<p>save and of course then:</p>

<pre><code>&gt; sudo service apache2 restart
</code></pre>