Skip to main content

Configuration

PHP Debugger is configured through php.ini directives, all carrying the php_debugger. prefix. If you have set up step debugging for PHP before, most settings will look familiar.

Common settings

zend_extension=php_debugger

; debug is the only mode; profiling, coverage, and tracing were removed
php_debugger.mode=debug

; start a session only when triggered (recommended), or always
php_debugger.start_with_request=trigger

; where your IDE is listening
php_debugger.client_host=127.0.0.1
php_debugger.client_port=9003

Directives

DirectiveDefaultDescription
php_debugger.modedebugOperating mode. Set to off to disable the extension entirely.
php_debugger.start_with_requesttriggertrigger starts a session only when a trigger is present; yes starts on every request.
php_debugger.client_host127.0.0.1Host the debugger connects back to (your IDE).
php_debugger.client_port9003Port the debugger connects back to.

See the Configuration File reference for the complete list of directives, and Environment Variables for runtime overrides.

{•}

Need help?

Join our community on GitHub Discussions.

Go to Discussions →