Skip to content

When xdebug client is not active, functional test error message doesn't print to console. #1

@skyred

Description

@skyred

With the current version (running phpunit as www-data and standard error path is set):

If xdebug client is not active/turn on, then the error message doesn't print to console as well as /var/log/php_error.log. Instead, xdebug warning like:

Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(

is printed to both console and /var/log/php_error.log

Comparing to:

  • If xdebug client is active, then functional test error message prints fine, break points also work well
  • If the test is kernel, then the error message prints fine no matter if the xdebug client is active or not.

Workaround for now:

  1. Turn on xdebug client, set or unset breakpoints would work. Easy.
  2. Turn off xdebug serve side in the container (';xdebug.mode=debug' in /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini), but this would debugging functional test from working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions