从浏览器打开页面时,我已经能够让我的 PHP 脚本在 PhpStorm 中触发我的侦听器。我只需要在 docker 中安装 Xdebug,并配置它
xdebug.remote_connect_back = On xdebug.remote_enable = On xdebug.remote_autostart = Off
现在我希望在从 docker 中的 PHP CLI 调用脚本时触发它。我尝试了几个选项,php -dxdebug.remote_enable=1 -dxdebug.remote_autostart=1 -dxdebug.remote_connect_back=1 -dxdebug.idekey=PHPSTORM -dxdebug.remote_port=9000 myscript.php
但没有成功。我错过了什么吗?
慕田峪9158850
繁星coding