How to debug cli command in magento 2
Steps:
1) Export the key (if you are using docker, do it in container)
export XDEBUG_CONFIG='PHPSTORM'
export PHP_IDE_CONFIG="serverName=vasan.dev.local.com"
2) Start the phpstorm Bug Debug
3) Execute the cli command
XDEBUG_SESSION_START=PHPSTORM php bin/magento vasan:product:import
Posted by vasan to vasan's deck (2024-11-04 05:54)