zend_extension=/usr/lib/php/20190902/xdebug.so
xdebug.mode=debug
xdebug.log=/var/log/xdebug.log
I had set permissions 777 to xdebug.log file
I run
php7.4 index.php
PhpStorm listening is on.
Code does not stop on breakpoints when running from command line, so probably I need to check the log for info.
Based on @LazyOne comment, tried this way and it works - stops at breakpoints and log file gets recorded:
php7.4 -d xdebug.start_with_request=yes index.php