webksde / ddev-vscode-devcontainer-drupal-template

Drupal DDEV based development container with attached Visual Studio Code
22 stars 3 forks source link

"Xdebug: [Step Debug] Could not connect to debugging client" when xdebug is enabled and phpunit is running #143

Open joshsedl opened 9 months ago

joshsedl commented 9 months ago

Currently, if we have xdebug enabled and run phpunit tests, all tests fail and the following error gets thrown:

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

This is quite annoying but not big of a problem, since we can simply disable xdebug again through ddev xdebug off.

But if we want to check the test coverage of a module we need to run ddev phpunit-coverage, which needs both xdebug and phpunit running at the same time. The test coverage gets created, but the terminal is filled with these warnings.