Save the file, and then check that the setting’s taken effect, by running the following command: php -ri xdebug | grep remote_enable ![]() Open that file in your favourite editor of choice, and add the following line: xdebug.remote_enable=1 This should output something like /etc/php/7.3/cli/conf.d/20-xdebug.ini to the console. We can find it by running the following command. To do that, we need to ensure that remote_enable is enabled.įirst, we need to find the relevant configuration file. If you see “ Xdebug” in the output, then it’s installed and enabled. The package manager will most likely enable it, but to be sure run the following command. Then, once Xdebug is installed, you need to ensure that it’s both enabled and properly configured. To install Xdebug, run the following command: sudo apt-get install -y php-xdebug However, please adapt them to your package manager of choice. To do that, I strongly encourage you to use the package manager on your Linux distribution, or a package manager for your operating system, such as Homebrew on macOS.įor the examples in this article, I’m going to assume that you’re running a Debian-based Linux distribution, such as Debian, Ubuntu, or Linux Mint. The first thing that we need to do is to add Xdebug support to our PHP binary.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |