====== Xdebug ====== ---- ===== Installation ===== Copy/paste ''phpinfo();'' in the [[https://xdebug.org/wizard | Xdebug install wizard ]] for customized directions. \\ Generically this should work pecl install xdebug Ensure you put the xdebug config in the correct ''php.ini''. If using Nginx + fpm it's something like ''/etc/php/7.x/fpm/php.ini'' you can also add this to the cli version if desired. [xdebug] zend_extension = /usr/lib/php/20180731/xdebug.so ; locate xdebug.so to find your path xdebug.remote_enable = 1 xdebug.remote_autostart = 1 xdebug.remote_autorestart = 1 xdebug.remote_host = On xdebug.default_enable = 1 xdebug.remote_port = 9900 ; default is 9000 xdebug.profiler_enable = 1 xdebug.remote_connect_back = 1 Note: you likely need to restart php and nginx #linux, if using fpm sudo service php7.3-fpm restart # mac sudo brew services restart php@7.1 ----