Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skyred opened this issue Jun 8, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@skyred
Copy link
Owner

skyred commented Jun 8, 2021

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.
@skyred skyred added the enhancement New feature or request label Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant