View Issue Details

IDProjectCategoryView StatusLast Update
0002267XdebugStep Debuggingpublic2024-06-05 10:03
Reporterdavesplat Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
PlatformPHP 8.3.6OSWindows Server 2019OS Version10.0.17763
Product Version3.3.2 
Summary0002267: Application slow when debugger is not running VS Code
Description

I just upgraded PHP from 7.4 to 8.3 and applications are running so much slower. My problem seems nearly identical to the previous defect https://bugs.xdebug.org/view.php?id=2076.

I also get many (>20) repeated messages in the xdebug log of the form:
[15600] [Step Debug] ERR: Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9003 (through xdebug.client_host/xdebug.client_port).
[15600] [Step Debug] INFO: Connecting to configured address/port: localhost:9003.

In my case, I'm making the request to PHP from my regression tests. I know each of the requests made to PHP, there are only two:

[17/May/2024:17:50:27 +0000] 10.0.3.186 - "POST /api/authenticatev3 HTTP/1.1" 200 123 "-"
[17/May/2024:17:50:41 +0000] 10.0.3.186 - "DELETE /api/user/users?username=doesnotmatter%40bugsplat.com HTTP/1.1" 403 58 "-"

Any advice would be appreciated!

php.ini:

zend_extension = "C:\www\php8\ext\php_xdebug-3.3.2-8.3-vs16-x86_64.dll"
xdebug.mode=debug
xdebug.start_with_request=yes

xdebug.remote_handler=dbgp
xdebug.client_host=localhost
xdebug.client_port = 9003
xdebug.max_nesting_level=1024
xdebug.client_port=9003

xdebug.output_dir="c:\www\webroot\tmp"
xdebug.log_level=7
xdebug.log = "c:\www\Apache2.4\logs\xdebug.log"

TagsNo tags attached.
Operating SystemWindows Server 2019
PHP Version8.2.0-8.2.9

Activities

davesplat

2024-05-17 19:56

reporter   ~0006957

My PHP code initializes the AWS DynamoDB API to manage session information. If I disable the call to DynamoDB, the multiple timeouts go away.

This is a regression from my PHP 7 setup. Any suggestions on how to improve performance?

derick

2024-06-05 10:03

administrator   ~0006967

The error message "ERR: Time-out connecting to debugging client, waited: 200 ms. " indicates that your network stack doesn't immediately reject the connection if it can't be made. That's usually due to a (misconfigured) firewall.

Can you check that?

Unlike in 0002076, I can't ask you to strace, as Windows doesn't support that.

Issue History

Date Modified Username Field Change
2024-05-17 17:54 davesplat New Issue
2024-05-17 19:56 davesplat Note Added: 0006957
2024-06-05 10:03 derick Assigned To => derick
2024-06-05 10:03 derick Status new => feedback
2024-06-05 10:03 derick Note Added: 0006967