Search code examples
phpstormxdebugxdebug-3

Why Xdebug 3 log is empty?


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.

enter image description here

enter image description here

Code does not stop on breakpoints when running from command line, so probably I need to check the log for info.


Solution

  • 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