How to collect remote log for Xdebug
Enable Xdebug logging by adding the following line into php.ini:
xdebug.remote_log=/log_path/xdebug.log , where log_path is a path to an existing directory. Please make sure that the web server has sufficient permissions to write into this directory.
Please restart your web server after editing the file for changes to take effect.
To find php.ini used by command line, you need to run php --ini in the command line.
To find php.ini used by the web server you need to open a web page with a simple PHP script:
<?php phpinfo(); ?>
Please sign in to leave a comment.
this refers to the location on the machine running the php interpreter. It could be your own machine if you are running things locally, or it could be inside of a vm/remote server/docker container.
" , where log_path is the path to the existing directory." to *what* existing directory? Where? What directory? On the machine that is running IntelliJ Ultimate (or phpStorm)? Or on the remote server (/var/log/apache2/xyz) ?
That's still not very clear.
Are you referring to the PHP directory (e.g. /etc/php/7.x)? The project directory?
Also would be nice to know who should be owner/group and what permissions are needed. 777?
In my case the file was specified in the /etc/php.d/15-xdebug.ini file using the setting that this article indicated.