Guides

Magento 2 Logo

XDebug 3 – Debug CLI scripts in PHP Storm (bin/magento)

/etc/php/php7.3/cli/php.ini settings: xdebug.remote_enable=1 xdebug.idekey=PHPSTORM xdebug.remote_autostart=1 xdebug.remote_handler=dbg xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.max_nesting_level=300 xdebug.ide_key=’PHPSTORM’ xdebug.remote_connect_back=1 Run script with : php -d xdebug.mode=debug -d xdebug.client_host=127.0.0.1 -d xdebug.client_port=9003 bin/magento