I cannot install Xdebug on Homestead because I get some sort of compile error.
I am following the Xdebug Wizard (https://xdebug.org/wizard) and when I input the ./configure
command I get this error:
configure: error: in /home/vagrant/code/xdebug-2.7.2:
configure: error: cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See 'config.log' for more details
This points at that you don't have a C compiler installed at all. You will have better luck after installing the php-dev package first, which should pull in the compilers that PHP extensions will need.