Skip to content

Instantly share code, notes, and snippets.

@joseluisq
Last active May 15, 2024 19:12
Show Gist options
  • Save joseluisq/5a62fc629cbc2b93f89b9a3b6c2f4913 to your computer and use it in GitHub Desktop.
Save joseluisq/5a62fc629cbc2b93f89b9a3b6c2f4913 to your computer and use it in GitHub Desktop.
Install PHP 7 Xdebug in Arch Linux

Install PHP 7 Xdebug in Arch Linux

"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)

Source: https://wiki.archlinux.org/index.php/PHP#XDebug

@bensaadmucret
Copy link

Thanks a lot!

@aginanjar
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment