35.2 Debugging with Xdebug
Perhaps the best known debugger comes from Derick Rethans and is called Xdebug; the project homepage is www.xdebug.org. There was a new major release for PHP 8, Xdebug 3, and Xdebug 3.3.x was released for PHP 8.3. Xdebug 3.4.0 added support for PHP 8.4. As usual, the complete source code or alternatively binary distributions for Windows are available. The latter are available for all current PHP versions.
On Windows, you install the extension slightly differently than the other PHP extensions. As Xdebug is based directly on the heart of PHP, the Zend Engine, you cannot load it with extension but need a special instruction: zend_extension. If necessary, adjust the file name and select the version that matches your ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access