What operating system you are using? The installation process differs with the OS. For
PHP debug process through Xdebug, you need to install it through this command
sudo apt install php-xdebug
Now add following code to xdebug.ini file
xdebug.profiler_enable_trigger = 1
xdebug.profiler_enable = 0
xdebug.remote_enable = 1
xdebug.profiler_output_dir = "/tmp"
Now use the following command to restart apache server
sudo service apache2 restart;