Skip to content

XDEBUG: Outdated configuration #30

@gopibabus

Description

@gopibabus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions