How to install Xdebug on UbuntuClovon·FollowFeb 9, 2022--ListenShareYou can simply run the following commands to install Xdebug on ubuntu. Here, I am using PHP 8.0sudo apt-get install php-xdebugsudo apt-get install php8.0-xdebugsudo service apache2 restart