View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001953 | Xdebug | Step Debugging | public | 2021-03-03 10:29 | 2021-03-04 09:30 |
Reporter | naitsirch | Assigned To | derick | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Summary | 0001953: Getting "Xdebug: [Step Debug] Time-out connecting to debugging client" event without started session | ||||
Description | I have the issue that every execution of PHP in CLI produces the output "debug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(", although I have unsetted the XDEBUG_SESSION env variable. $ env | grep XDEBUG $ php -r "var_dump(xdebug_is_debugger_active());" As far as I understand XDebug should not start doing anything when no XDEBUG_SESSION env variable exists. Am I missing something or is it a bug? | ||||
Additional Information | $ php --version ini settings: xdebug.mode=debug | ||||
Tags | No tags attached. | ||||
Operating System | Debian 10.8 | ||||
PHP Version | 7.4.10-7.4.19 | ||||
|
Your culprit is this line: $ env | grep XDEBUG Xdebug 3's documentation no longer mentions this, but this is a legacy way of starting the step debugger, and something that many IDEs still use internally. I didn't want to break that. If your IDE key is always the same (and, it really ought to be), then you can set it in php.ini through xdebug.idekey, and then the debugger should not activate. In a single line (note the -n passed to php to stop the ini file from loading and resetting Xdebug's settings to their defaults):
|
|
You are right. Thanks for the hint. |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-03-03 10:29 | naitsirch | New Issue | |
2021-03-03 11:51 | derick | Assigned To | => derick |
2021-03-03 11:51 | derick | Status | new => resolved |
2021-03-03 11:51 | derick | Resolution | open => no change required |
2021-03-03 11:51 | derick | Note Added: 0005703 | |
2021-03-04 09:30 | naitsirch | Note Added: 0005706 |