Question: how install xdebug ubuntu 16.04?
Answer: sudo apt-get install php-xdebug. You should check your PHP modules list and see xdebug in there now. ... 
php -m. sudo service apache2 restart. ... 
vi /etc/php/7.0/mods-available/xdebug. ini.
xdebug. show_error_trace = 1. ... 
sudo apt-get install php-soap php-curl. Soap requires you to uncomment a line in your php.