there was actually this problem, and I had to take the time to figure out the solution: (if any previous versions of php where they are installed, be sure to completely get rid of them first. If necessary, clean and reinstall apache2 and php7)
first:
> sudo apt-get install php-xdebug
then edit the php.ini php 7 file:
> sudo gedit /etc/php/7.0/apache2/php.ini
and just add below:
xdebug.remote_enable = On
save and of course then:
> sudo service apache2 restart
source share