View Issue Details

IDProjectCategoryView StatusLast Update
0002344XdebugStep Debuggingpublic2025-04-29 10:36
ReporterAJoe16 Assigned To 
PriorityhighSeveritymajorReproducibilityhave not tried
Status newResolutionopen 
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

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-04-29 10:36 AJoe16 New Issue