"Normally", these instructions should be also valid (in similar way) for other Linux distros.
1.- Install Xdebug using pacman:
sudo pacman -Sy xdebug2.- Add or edit xdebug.ini file and add xdebug as Zend extension:
sudo emacs /etc/php/conf.d/xdebug.iniadd 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 = 23.- Verify if the extension is loaded:
php -r "var_dump(extension_loaded('xdebug'));"
Command line code:1:
bool(true)
@g14wx
For php 7 users, the easiest way I found is to follow the xdebug wizard on their site, once you paste your phpinfo output it will guide you through. And to save you some headache,
phpize7binary is included with php 7 in arch, so you don't need to look forphp-devpackage, because it doesn't exist.