"Normally", these instructions should be also valid (in similar way) for other Linux distros.
1.- Install Xdebug using pacman:
sudo pacman -Sy xdebug| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server; | |
| root /your/root/path; | |
| index index.html; | |
| server_name you.server.com; |