File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,6 +212,31 @@ is where to look first if breakpoints in a container are being ignored.
212212php_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 |
You can’t perform that action at this time.
0 commit comments