[wp-trac] [WordPress Trac] #49953: Xdebug not working out of the box
WordPress Trac
noreply at wordpress.org
Thu Mar 20 12:53:08 UTC 2025
#49953: Xdebug not working out of the box
-------------------------------------------------+-------------------------
Reporter: Jules Colle | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.8
Component: Build/Test Tools | Version: 5.3
Severity: normal | Resolution:
Keywords: has-patch has-testing-info dev- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Changes (by SirLouen):
* keywords: => has-patch has-testing-info dev-feedback
Comment:
== Test Report
=== Description
This report validates that the indicated patch works as expected.
It's a little weird that I create a testing report for my patch, but this
is meant to accelerate the redeployment of this patch to be ready for 6.8
RC1.
Patch tested: https://patch-diff.githubusercontent.com/raw/WordPress
/wordpress-develop/pull/8554.diff
=== Environment
- WordPress: 6.8-beta2-59971-src
- PHP: 8.2.28
- Server: nginx/1.27.4
- Database: mysqli (Server: 8.4.4 / Client: mysqlnd 8.2.28)
- Browser: Chrome 134.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.1
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.0
=== Expected results
Given than the Github action for Xdebug is:
{{{
LOCAL_PHP_XDEBUG=true node ./tools/local-env/scripts/docker.js run php
./vendor/bin/phpunit -v --group xdebug --exclude-group __fakegroup__
}}}
We expect that running it passes all the tests
=== Results with the PR 8515
{{{
$ LOCAL_PHP_XDEBUG=true node ./tools/local-env/scripts/docker.js run php
./vendor/bin/phpunit -v --group xdebug --exclude-group __fakegroup__
Xdebug: [Step Debug] Could not connect to debugging client. Tried:
localhost:9003 (through xdebug.client_host/xdebug.client_port).
Xdebug: [Step Debug] Could not connect to debugging client. Tried:
localhost:9003 (through xdebug.client_host/xdebug.client_port).
Installing...
Running as single site... To run multisite, use -c
tests/phpunit/multisite.xml
External HTTP skipped tests can be caused by timeouts.
If this changeset includes changes to HTTP, make sure there are no
timeouts.
PHPUnit 9.6.22 by Sebastian Bergmann and contributors.
Runtime: PHP 8.2.28
Configuration: /var/www/phpunit.xml.dist
Warning: Your XML configuration validates against a deprecated
schema.
Suggestion: Migrate your XML configuration using "--migrate-
configuration"!
EE 2 / 2
(100%)
Time: 00:02.659, Memory: 203.00 MB
There were 2 errors:
1) Tests_Ajax_wpAjaxResponse::test_response_charset_in_header
PHPUnit\Framework\Exception: Xdebug: [Step Debug] Could not connect to
debugging client. Tried: localhost:9003 (through
xdebug.client_host/xdebug.client_port).
Xdebug: [Step Debug] Could not connect to debugging client. Tried:
localhost:9003 (through xdebug.client_host/xdebug.client_port).
2) Tests_oEmbed_HTTP_Headers::test_rest_pre_serve_request_headers
PHPUnit\Framework\Exception: Xdebug: [Step Debug] Could not connect to
debugging client. Tried: localhost:9003 (through
xdebug.client_host/xdebug.client_port).
Xdebug: [Step Debug] Could not connect to debugging client. Tried:
localhost:9003 (through xdebug.client_host/xdebug.client_port).
ERRORS!
Tests: 2, Assertions: 0, Errors: 2.
}}}
=== Actual Results with PR 8554
1. ✅ Issue resolved with patch.
{{{
$ LOCAL_PHP_XDEBUG=true node ./tools/local-env/scripts/docker.js run php
./vendor/bin/phpunit -v --group xdebug --exclude-group __fakegroup__
Installing...
Running as single site... To run multisite, use -c
tests/phpunit/multisite.xml
External HTTP skipped tests can be caused by timeouts.
If this changeset includes changes to HTTP, make sure there are no
timeouts.
PHPUnit 9.6.22 by Sebastian Bergmann and contributors.
Runtime: PHP 8.2.28
Configuration: /var/www/phpunit.xml.dist
Warning: Your XML configuration validates against a deprecated
schema.
Suggestion: Migrate your XML configuration using "--migrate-
configuration"!
.. 2 / 2
(100%)
Time: 00:02.663, Memory: 203.00 MB
OK (2 tests, 3 assertions)
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49953#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list