Skip to content

Xdebug installation for Fedora

Installation

Install the Xdebug package:

sh
sudo dnf install php-pecl-xdebug3

The output of

sh
php -v

Should now contain "with Xdebug" if the installation was successful.

Enabling Xdebug

If you want to permanently enable coverage and step-debugging, uncomment the xdebug.mode line in /etc/php.d/15-xdebug.ini and change the right hand side to coverage,develop,debug.

If you want to enable it for a single command, prepend that command with XDEBUG_MODE=coverage for example.