View Issue Details

IDProjectCategoryView StatusLast Update
0001465XdebugStep Debuggingpublic2021-04-14 16:06
Reportertmannherz Assigned Toderick  
Status closedResolutionunable to reproduce 
PlatformLinuxOSDebianOS Version8
Product Version2.5.5 
Summary0001465: Xdebug initiates remote debug for every request
DescriptionRunning PHP-fpm 7.1 and Xdebug 2.5.5 within Docker, Xdebug attempts a remote debugging connection for every request.

According to, a remote debugging session should only be initiated in one of three ways. From what I can tell, none of the three ways is satisfied, yet the remote connection is made anyway. idekey is not set, XDEBUG_SESSION_START is not passed, and the XDEBUG_SESSION cookie is not present.

The only way to prevent a debug session is to include XDEBUG_SESSION_STOP in the URL.
Steps To ReproduceI created a GitHub repo to house the Docker configuration. Both docker and docker-compose are required.

Following the setup in the repo README, you can start the containers necessary to launch an nginx server with php-fpm and xdebug.

I have PHPStorm, and configured the Xdebug debug port to 9004. I click the icon to "Start Listening for PHP debug connections", open index.php, and set a breakpoint on line 4.

Next, navigate to http://php-docker.local:8080/ in a browser, and the remote debug session will be initiate.
TagsNo tags attached.
Operating System
PHP Version7.1.0-7.1.4



2017-09-21 10:11

administrator   ~0004416

Which Xdebug php.ini settings have you made?


2017-09-21 15:02

reporter   ~0004420
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_port = 9004
xdebug.remote_autostart = off
xdebug.remote_cookie_expire_time = 0
xdebug.remote_log = "/var/log/xdebug.log"

;xdebug.idekey = PHPSTORM

xdebug.profiler_enable = off
xdebug.profiler_output_dir = "/tmp/profiledir"
xdebug.show_local_vars = on


2017-09-21 15:03

reporter   ~0004421

And this env setting:

XDEBUG_CONFIG: remote_host=


2019-08-23 10:12

reporter   ~0005120

Please Fix this bug!!! I'm begging you!


2021-03-17 09:32

administrator   ~0005754

Is this issue still relevant to you with Xdebug 3?


2021-04-14 16:06

administrator   ~0005834

Closing this, as it is missing requested feedback.

Issue History

Date Modified Username Field Change
2017-09-07 21:53 tmannherz New Issue
2017-09-21 10:11 derick Note Added: 0004416
2017-09-21 10:11 derick Assigned To => derick
2017-09-21 10:11 derick Status new => feedback
2017-09-21 15:02 tmannherz Note Added: 0004420
2017-09-21 15:02 tmannherz Status feedback => assigned
2017-09-21 15:03 tmannherz Note Added: 0004421
2019-08-23 10:12 xilefnori Note Added: 0005120
2020-03-12 16:33 derick Category Remote Debugging => Step Debugging
2021-03-17 09:32 derick Status assigned => feedback
2021-03-17 09:32 derick Note Added: 0005754
2021-04-14 16:06 derick Status feedback => closed
2021-04-14 16:06 derick Resolution open => unable to reproduce
2021-04-14 16:06 derick Note Added: 0005834