View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001465XdebugRemote Debuggingpublic2017-09-07 22:532017-09-21 16:03
Assigned Toderick 
PlatformLinuxOSDebianOS Version8
Product Version2.5.5 
Target VersionFixed in Version 
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
Attached Files

- Relationships

-  Notes
derick (administrator)
2017-09-21 11:11

Which Xdebug php.ini settings have you made?
tmannherz (reporter)
2017-09-21 16:02 [^]
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
tmannherz (reporter)
2017-09-21 16:03

And this env setting:

XDEBUG_CONFIG: remote_host=

- Issue History
Date Modified Username Field Change
2017-09-07 22:53 tmannherz New Issue
2017-09-21 11:11 derick Note Added: 0004416
2017-09-21 11:11 derick Assigned To => derick
2017-09-21 11:11 derick Status new => feedback
2017-09-21 16:02 tmannherz Note Added: 0004420
2017-09-21 16:02 tmannherz Status feedback => assigned
2017-09-21 16:03 tmannherz Note Added: 0004421

Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker