View Issue Details

IDProjectCategoryView StatusLast Update
0002344XdebugStep Debuggingpublic2025-06-27 08:23
ReporterAJoe16 Assigned Toderick  
PriorityhighSeveritymajorReproducibilityhave not tried
Status resolvedResolutionunable to reproduce 
Product Version3.4.2 
Summary0002344: Getting "ERR_CONNECTION_RESET" error with specific xdebug versions
Description

While updating my PHP dev environment by updating PHP and Xdebug versions, I encountered this error "ERR_CONNECTION_RESET" while debugging.

Context: debugging a PrestaShop project.

Debugging with old versions => no issue:

  • PHP 7.4.33-Win32-vc15-x64
  • Xdebug 3.1.6-7.4-vc15-x86_64

Debugging with new versions => "ERR_CONNECTION_RESET" displayed on the browser:

  • PHP 8.1.32-Win32-vs16-x64
  • Xdebug 3.4.2-8.1-ts-vs16-x86_64 (latest version at the time of writing this thread)

The strange thing is that I get this error mainly when I'm debugging the PrestaShop back-office. When I debug the PrestaShop front-office, the error may sometimes appear then disappear, but it was not blocking, as the debugging continues.

Troubleshooting after upgrading to the newer versions:

  • With the setup PHP 8.1.32-Win32-vs16-x64 and Xdebug 3.4.2-8.1-ts-vs16-x86_64: I tried with different browsers (Edge and Chrome) and I'm still getting the error => browser cause discarded.
  • With the setup PHP 8.1.32-Win32-vs16-x64 and Xdebug 3.4.2-8.1-ts-vs16-x86_64: I tried with different IDEs (PhpStorm and VSCode) and I'm still getting the error => IDE cause discarded.
  • Since Xdebug 3.1.6-7.4-vc15-x86_64 is working with PHP 7.4.33 (my previous setup): I tried xdebug-3.1.6-8.1-vs16-x86_64 with PHP 8.1.32, and the debugging worked without any error => Cause identified: it is the Xdebug version.

So I ended up with this setup that is working:

  • PHP 8.1.32-Win32-vs16-x64
  • Xdebug 3.1.6-8.1-vs16-x86_64

I assume that there is an issue with some Xdebug versions (at least the latest at the moment of writing this thread: Xdebug 3.4.2-8.1-ts-vs16-x86_64).

Similar issue reported in previous version here https://bugs.xdebug.org/view.php?id=2024

Steps To Reproduce
  1. Install PrestaShop version 8.2.1 using PHP 8.1.32-Win32-vs16-x64
  2. Setup Xdebug using Xdebug 3.4.2-8.1-ts-vs16-x86_64
  3. Try debugging the front office, it works.
  4. Try debugging the back office, the error "ERR_CONNECTION_RESET" will be displayed on the browser.
TagsNo tags attached.
Operating System
PHP Version8.1.30-8.1.39

Activities

derick

2025-05-02 10:39

administrator   ~0007273

Install PrestaShop version 8.2.1 using PHP 8.1.32-Win32-vs16-x64

I don't have Windows, and neither do I have a clue how PrestaShop works.

You need to provide a short reproducible case as is explained on https://xdebug.org/reporting-bugs — this link was shown directly above where you put your summary in the original report.

derick

2025-06-27 00:18

administrator   ~0007327

I fixed a few of these likely related issues in Xdebug 3.4.[34], so please try that.

As I don't have enough information to reproduce this, and no requested information has been submitted, I'm therefore closing this out.

If you can reproduce this with the latest (3.4.4) version, and can provide enough information for me to reproduce this, please open a new ticket.

AJoe16

2025-06-27 08:23

reporter   ~0007329

Hello Derick, sorry I didn't have time to provide you with what you have requested.

I moved my dev environment to WSL under Windows and I didn't get any issue when using the version 3.4.3 of Xdebug.

Thank you very much for your work and help.

If I encounter the issue again, I will let you know. Have a nice day!

Issue History

Date Modified Username Field Change
2025-04-29 10:36 AJoe16 New Issue
2025-05-02 10:39 derick Assigned To => derick
2025-05-02 10:39 derick Status new => feedback
2025-05-02 10:39 derick Note Added: 0007273
2025-06-27 00:18 derick Status feedback => resolved
2025-06-27 00:18 derick Resolution open => unable to reproduce
2025-06-27 00:18 derick Note Added: 0007327
2025-06-27 08:23 AJoe16 Note Added: 0007329