View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001465 | Xdebug | Step Debugging | public | 2017-09-07 21:53 | 2021-04-14 16:06 |
Reporter | tmannherz | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | unable to reproduce | ||
Platform | Linux | OS | Debian | OS Version | 8 |
Product Version | 2.5.5 | ||||
Summary | 0001465: Xdebug initiates remote debug for every request | ||||
Description | Running PHP-fpm 7.1 and Xdebug 2.5.5 within Docker, Xdebug attempts a remote debugging connection for every request. According to https://xdebug.org/docs/remote, 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 Reproduce | I created a GitHub repo to house the Docker configuration. Both docker and docker-compose are required. https://github.com/tmannherz/docker-xdebug-test 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. | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 7.1.0-7.1.4 | ||||
|
Which Xdebug php.ini settings have you made? |
|
https://github.com/tmannherz/docker-xdebug-test/blob/master/php/xdebug.ini[xdebug] ;xdebug.idekey = PHPSTORM xdebug.profiler_enable = off |
|
And this env setting: XDEBUG_CONFIG: remote_host=192.168.1.101 |
|
Please Fix this bug!!! I'm begging you! |
|
Is this issue still relevant to you with Xdebug 3? |
|
Closing this, as it is missing requested feedback. |
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 |