Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
development:php:xdebug [2020/03/03 10:44]
kalenpw created
development:php:xdebug [2021/06/29 15:15] (current)
kalenpw
Line 11: Line 11:
  
 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. 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.
 +
 +<code ini>
 +[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
 +</code>
 +
 +Note: you likely need to restart php and nginx
 +<code bash>
 +#linux, if using fpm
 +sudo service php7.3-fpm restart
 +
 +# mac
 +sudo brew services restart php@7.1
 +</code>
 +
 +----