Skip to content

Commit a540bf7

Browse files
Merge pull request #22 from php-debugger/report-xdebug-module
document the report_xdebug_module setting
2 parents 54a2b9e + 94561a5 commit a540bf7

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

docs/reference/settings.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,31 @@ is where to look first if breakpoints in a container are being ignored.
212212
php_debugger.path_mapping=1
213213
```
214214

215+
## `php_debugger.report_xdebug_module`
216+
217+
| Type | Default | Set in |
218+
| --- | --- | --- |
219+
| Boolean | `0` | `php.ini` only |
220+
221+
Whether `extension_loaded("xdebug")` reports `true`.
222+
223+
It is off by default on purpose. Some tools, Composer and PHPUnit among them, use
224+
that check to detect Xdebug and then restart PHP with the extension disabled — a
225+
restart that cannot work here, because there is no separate Zend extension for them
226+
to unload. Reporting the module would leave those tools trying to remove something
227+
that is not there.
228+
229+
Turn it on only for a tool that gates a feature on the check rather than trying to
230+
disable anything.
231+
232+
```ini
233+
php_debugger.report_xdebug_module=1
234+
```
235+
236+
Nothing else depends on this setting. The `xdebug.` prefixed settings, the
237+
`XDEBUG_*` environment variables and triggers, and the `xdebug_*()` functions all
238+
work either way.
239+
215240
## `php_debugger.start_upon_error`
216241

217242
| Type | Default | Set in |

0 commit comments

Comments
 (0)