"Normally", these instructions should be also valid (in similar way) for other Linux distros.
1.- Install Xdebug using pacman:
sudo pacman -Sy xdebug
2.- Add or edit xdebug.ini
file and add xdebug
as Zend extension:
sudo emacs /etc/php/conf.d/xdebug.ini
add xdebug.so
lines as follow:
zend_extension=xdebug.so
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.cli_color = 2
3.- Verify if the extension is loaded:
php -r "var_dump(extension_loaded('xdebug'));"
Command line code:1:
bool(true)
Thank you!