DebugSubscriber - Fix activation check
authorTim Otten <totten@civicrm.org>
Sun, 18 Sep 2022 23:11:53 +0000 (16:11 -0700)
committerTim Otten <totten@civicrm.org>
Sun, 18 Sep 2022 23:11:53 +0000 (16:11 -0700)
commit633dd2650eddc64152ff649a35581c9b2435fcdb
tree3402766781bb1d22f6139ae24bd027dbc02a719a
parent585603f352623ca32941ddc3dc1687ad72658f2b
DebugSubscriber - Fix activation check

This subscriber only interjects if XDebug is configured with the suitable mode.

To see if the mode is suitable, it consults `ini_get("xdebug.mode")`, but
this is not quite right -- because the mode may be set other ways (eg
`XDEBUG_MODE`). In XDebug 3.1+, you can get the true effective-mode
by calling `xdebug_info`.

See also: https://xdebug.org/docs/all_functions#xdebug_info
Civi/API/Subscriber/DebugSubscriber.php