XDebug升級更新配置
不知不覺中,XDebug 已經是Version 3 了!
根據官方文檔 https://xdebug.org/docs/upgrade_guide ,之前XDebug 2 的配置 (/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini )如下所示:
1xdebug.remote_connect_back=0 2xdebug.remote_autostart=1 3xdebug.remote_enable=1 4xdebug.remote_host="host.docker.internal" 5xdebug.remote_port=9001 6xdebug.idekey=PHPSTORM 7memory_limit = 1024M 8xdebug.remote_log="/tmp/xdebug.log" 需要改成這樣(v3):
1xdebug.discover_client_host=false 2xdebug.mode=debug 3xdebug.start_with_request=yes 4xdebug.client_host="host.docker.internal" 5xdebug.client_port=9001 6xdebug.idekey=PHPSTORM 7memory_limit = 1024M 8xdebug.log="/tmp/xdebug.log"