View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002059 | Xdebug | Step Debugging | public | 2022-01-26 15:24 | 2022-06-06 15:22 |
Reporter | ldschaak | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 3.1.2 | ||||
Summary | 0002059: XDebug always activated without trigger when idekey and XDEBUG_CONFIG is set at the same time | ||||
Description | As the title says i stumbled upon the problem, that XDebug is enabled at every request, even if there is no trigger. I got the problem on a project where i use a third party docker image, where xdebug.idekey setting has a non-empty value. This two settings in combination shows us a warning in every console command we are using: To go to the root of the problem, i used docker to make an reproduceable example. As far as i can see this behaviour can not be overwritten by xdebug.start_with_request=trigger. | ||||
Steps To Reproduce | $ docker run -it --rm php:8.0 bash $ pecl install xdebug With the following command i expect to see no warning, because XDebug remote connection should not be established. For other combinations i have following output, were XDebug works a expected: idekey: not set, XDEBUG_CONFIG: not set idekey: set, XDEBUG_CONFIG: not set idekey: not set, XDEBUG_CONFIG: set | ||||
Additional Information | $ php -v $ uname -srm $ cat /etc/os-release | ||||
Tags | No tags attached. | ||||
Operating System | Debian | ||||
PHP Version | 8.0.0-8.0.4 | ||||
|
I can reproduce this locally, without docker, with:
|
|
This is a duplicate of 0002070, which I have investigated and deemed as "working as expected": https://bugs.xdebug.org/2070#c6238 |
|
Thanks for your answer. I appreciate the update of the docs! We will try to use XDEBUG_CONFIG furthermore, because it's a nice and easy way to configure docker images from outside without changing the actual image. |
|
I think there is a different (better?) way of doing that. Instead of using
And then in your php.ini/xdebug.ini, use that created environment variable as well. This is described at https://www.php.net/manual/en/configuration.file.php#example-27: |
|
That workaround is more or less exactly what I switched to following my last ticket. Can confirm it works. |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-01-26 15:24 | ldschaak | New Issue | |
2022-01-26 20:12 | derick | Assigned To | => derick |
2022-01-26 20:12 | derick | Status | new => confirmed |
2022-01-26 20:12 | derick | Note Added: 0006196 | |
2022-01-26 20:12 | derick | Target Version | => 3.1dev |
2022-03-11 17:57 | derick | Status | confirmed => resolved |
2022-03-11 17:57 | derick | Resolution | open => no change required |
2022-03-11 17:57 | derick | Note Added: 0006242 | |
2022-03-11 17:57 | derick | Relationship added | duplicate of 0002070 |
2022-03-14 07:57 | ldschaak | Note Added: 0006244 | |
2022-03-14 09:38 | derick | Note Added: 0006245 | |
2022-03-24 09:53 | Growiel | Note Added: 0006250 | |
2022-06-06 15:22 | derick | Target Version | 3.1dev => |