First, install xdebug
package on system:
$ sudo yum install php-pecl-xdebug.x86_64
Or with DNF:
$ sudo dnf install php-xdebug
If your have an Nginx server, we should restart the PHP processor php-fpm
:
$ sudo systemctl restart php-fpm
Or if you have a Apache server, we should restart the httpd
server:
$ sudo systemctl restart httpd
Finally, verify if xdebug extension is loaded:
php -r "echo (extension_loaded('xdebug') ? 'xdebug up and running!' : 'xdebug is not loaded!');"
// xdebug up and running!⏎
Thanks for the gist.
I have been trying to get
xdebug
working correctly in Eclipse Mars 2 (4.5.2) on Fedora 23. I got it working correctly after setting thexdebug.remote_enable
option.I have the revision at https://gist.github.com/josephx86/85c1413b25ee257e0543032aadfec7fc/revisions