
And here is the configuration I have tried for Xdebug3:
Код: Выделить всё
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so
xdebug.mode=debug
xdebug.start_with_request=yes
xdebug.client_host=host.docker.internal # here I tried several combinations like: "localhost", "127.0.0.1", "172.17.0.1"
xdebug.client_port=9001 # here I tried several ports 9003 included with no success
Я получаю эту ошибку:
Код: Выделить всё
Script php bin/console doctrine:cache:clear-metadata returned with error code 255
!! [17-Nov-2020 15:24:40 UTC] Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9001 (through xdebug.client_host/xdebug.client_port) :-(
!! [17-Nov-2020 15:24:41 UTC] PHP Fatal error: Method class@anonymous::__toString() must not throw an exception, caught Symfony\Component\DependencyInjection\Exception\AutowiringFailedException: in /var/www/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AutowirePass.php on line 233
< /code>
Некоторая информация о моей среде: < /p>
Fedora 33 < /li>
Docker версия 19.03.13, Build 4484C46D9D < /li>
Phpstorm 2020.3 EAP Build #203.54.36 /> < /ul>
Это любопытно (потому что, по -видимому, host.docker.internal < /code> является «не» поддерживаемой версией Docker, которую я использую, и все же работает) и странно одновременно, когда следующая конфигурация работает с XDebug 2, даже имея отладку, слушающий входящие соединения все время: < /p>
alt artice artice artice artice artice artive artive artive artive artive artive artive artive artive artive aregger altisting artivements. src = "https://i.sstatic.net/yrki6.png"/>
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so
xdebug.remote_autostart=0
xdebug.remote_enable=1
xdebug.remote_host=host.docker.internal
xdebug.remote_port=9000
Подробнее здесь: https://stackoverflow.com/questions/648 ... ing-client
Мобильная версия