
Once you are done with PHP Xdebug, you can uninstall the package by using apt remove php-xdebug command as shown below. Once the package is installed successfully, you can verify the installed files using dpkg -L php-xdebug command as shown below. Php-common php-xdebug php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-phpdbg php7.4-readlineĠ upgraded, 8 newly installed, 0 to remove and 2 not upgraded.Īfter this operation, 20.3 MB of additional disk space will be used. The following NEW packages will be installed: Php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-phpdbg php7.4-readline The following additional packages will be installed: The following packages were automatically installed and are no longer required: This will download the package along with all its dependencies from default Ubuntu Repo. In the next step, you can install PHP Xdebug package by using apt install php-xdebug command as shown below. Get:8 focal-security/multiverse amd64 DEP-11 Metadata

Get:7 focal-security/universe amd64 DEP-11 Metadata Get:6 focal-security/main amd64 DEP-11 Metadata If any of the packages needs to be upgraded then run apt upgrade command as well. This will help system download any missing package updates. How to Install PHP Xdebug on Ubuntu 20.04 LTS (Focal Fossa)Īlso Read: How to Install Anaconda 3 on Ubuntu 20.04 LTS (Focal Fossa) Step 1: PrerequisitesĪ) You should have a running Ubuntu 20.04 LTS Server.ī) You should have sudo or root access to run privileged commands.Ĭ) You should have apt and dpkg utility available in your Server.Īlways sync the system cache with the latest available package information and updates from all the enabled repositories by using apt update command. It provides an improved version of var_dump() function, stack traces for Notices, Warnings, Errors and Exceptions to highlight the code path to the error.It also shows us the parts of our code base that are executed during the PHP Unit testing.It provides a way to debug your code in IDE or editor while script is executing.It allows us to trace every function call with arguments and invocation location to disk.It allows us in analyzing the performance of our PHP applications using Visualization tools.It also provides lot of PHP inbuilt functions which helps gather more information about the application being developed. Xdebug is a free and open source extension of PHP that provides developers a wide range of features like better error messages, advance debugging support, code coverage, profiling and so on.

In this article, I will take you through the steps to install PHP Xdebug on Ubuntu 20.04 LTS (Focal Fossa).
