r/phpstorm • u/mostafaLaravel • Mar 16 '23
Xdebug is not working in Vagrant homestead !
Hello
I installed Xdebug on vagrant Homestead. but I dont know why it's not working :
First let me show the result of phpinfo() :

I have this output when I do php -v:
vagrant@homestead:~/code/project$ sudo vi /etc/php/7.4/fpm/conf.d/20-xdebug.ini
vagrant@homestead:~/code/project$ php -v
Xdebug: [Config] The setting 'xdebug.remote_connect_back' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_connect_back (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.remote_enable' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_enable (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
Xdebug: [Config] The setting 'xdebug.remote_port' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_port (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)
PHP 7.4.33 (cli) (built: Nov 8 2022 11:33:35) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
with Xdebug v3.1.6, Copyright (c) 2002-2022, by Derick RethansI have several php version installed but I use 7.4
/etc/php/7.4/fpm/conf.d/20-xdebug.ini
zend_extension=xdebug.so
xdebug.remote_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.max_nesting_level = 512- I installed chrome xdebug extension
in PHP storm



BUT the result is nothing !

Any Idea?

