Skip to content

Files

Latest commit

Jun 3, 2025
2ad06f9 · Jun 3, 2025

History

History
47 lines (30 loc) · 1.27 KB

phpdbg.md

File metadata and controls

47 lines (30 loc) · 1.27 KB

The phpdbg SAPI

Configure the phpdbg (interactive PHP debugger) PHP SAPI.

PHP_SAPI_PHPDBG

  • Default: ON
  • Values: ON|OFF

Enable the phpdbg SAPI module as an executable.

PHP_SAPI_PHPDBG_SHARED

  • Default: OFF
  • Values: ON|OFF

Build phpdbg SAPI also as a shared module together with an executable.

The phpdbg shared library is after the build phase located in the sapi/phpdbg directory:

  • libphpdbg.so (*nix), or libphpdbg.dylib (macOS), or libphpdbg.dll (Windows)

PHP_SAPI_PHPDBG_DEBUG

  • Default: OFF
  • Values: ON|OFF

Build phpdbg in debug mode to enable additional diagnostic output for developing and troubleshooting phpdbg itself.

PHP_SAPI_PHPDBG_READLINE

  • Default: OFF
  • Values: ON|OFF

Explicitly enable readline support in phpdbg for command history accessible through arrow keys. Requires the Editline library. If the PHP extension readline is enabled during the build process, the phpdbg readline support is automatically enabled regardless of this option.

Where to find the Editline installation on the system, can be customized with the EDITLINE_ROOT variable.