# PHP Debugging ### 1. PHP 7.4 and Xdebug 2: - Download [Xdebug 2](https://xdebug.org/announcements). - Edit `/etc/php/7.4/apache2/conf.d/20-xdebug.ini`: ``` zend_extension=/usr/lib/php/20190902/xdebug.so xdebug.remote_enable=1 xdebug.remote_autostart=1 xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 ```