Closed swaibar closed 4 years ago
Could you check if extension is enabled ? There is a phpinfo : http://#{network_ip}/php Also, opcache is enabled, so according to doc you should modify php.ini:
Add the following line to php.ini:
zend_extension="/wherever/you/put/it/xdebug.so"
Note: If you want to use Xdebug and OPCache together, you must have the zend_extension line for Xdebug after the line for OPCache. Otherwise, they won't work properly.
I did already check the phpinfo : http://#{network_ip}/php...
when done I do not see the xdebug either php -v or via http://192.168.200.0/php/
And "you should modify php.ini" - I did modify php ini please see this line....
echo 'zend_extension = /usr/lib/php/20180731/xdebug.so' | sudo tee -a /etc/php/7.3/fpm/php.ini
...this appends the string zend_extension = /usr/lib/php/20180731/xdebug.so
to the end of the php ini file. As it is at the end it is after the opcache
lines.
Something isn't right with getting the php.ini settings used... I've just tried turning off the opcache and that had no effect. The php file is certainly the one as I've added phpinfo();die();
to pub/errors/404.php
so there must be something wrong with how I am applying/restarting it or the php.ini file.
Is there anything wrong with this? Or additional ini files being read?
sudo /etc/init.d/nginx restart
sudo /etc/init.d/php7.3-fpm restart
It worked for me with apt installation sudo apt install php-xdebug
according to this:
https://drupaland.eu/article/installing-and-enabling-xdebug-debian-9
do you know sudo apt install php-xdebug
is slightly better than what I had, thank you!
Hi, I have setup this skeleton to easily debug on my localhost a magento installation. However after following the instructions from https://xdebug.org/wizard and use the following steps but when done I do not see the xdebug either
php -v
or viahttp://192.168.200.0/php/
and then restart nginx and php-fpm
any help would be much appreciated!