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:
- Turn on xdebug client, set or unset breakpoints would work. Easy.
- 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.