bitpressio / docker-for-php-developers-errata

Reported errata for https://bitpress.io/docker-for-php-developers/
13 stars 0 forks source link

XDEBUG: Outdated configuration #30

Open gopibabus opened 2 years ago

gopibabus commented 2 years ago

The XDebug settings that are showed in Laravel 9 and 10 videos only work with XDebug 2.x. The XDebug 3 settings got updated. I wish you will update the respective content. These are final settings that are working for me:

Reference


#xdebug.ini
[xdebug]
;https://xdebug.org/docs/upgrade_guide
xdebug.mode=${PHP_XDEBUG_MODE}
xdebug.start_with_request = ${PHP_XDEBUG_START_WITH_REQUEST}
; remote_connect_back is not safe in production
xdebug.discover_client_host = 0
xdebug.client_host = ${PHP_XDEBUG_CLIENT_HOST}
xdebug.client_port = ${PHP_XDEBUG_CLIENT_PORT}
xdebug.idekey = ${PHP_XDEBUG_IDE_KEY}

;profiling
xdebug.output_dir  = ${PHP_XDEBUG_OUTPUT_DIR}

# .docker.env
PHP_XDEBUG_MODE=debug
PHP_XDEBUG_CLIENT_HOST=192.168.86.31
PHP_XDEBUG_START_WITH_REQUEST=yes
PHP_XDEBUG_CLIENT_PORT=9001
PHP_XDEBUG_IDE_KEY=DOCKER_PHPSTORM
PHP_XDEBUG_OUTPUT_DIR=/var/www/html/storage/logs