I have been waiting for the new release, because it has PHP 8.5 support.
Installation
I recommend to use PIE. The main reason is that you can use it on all the OS's. So not need to figure out how the extension needs to be installed on your OS.
There is even a PIE command that checks the composer.json file for missing extensions.
The one gotcha I encountered was not finding phpize. For the people that are not familiar with the command, it is a part of the php-dev package, and it is build for a specific PHP version. The great thing about the package is that you can add the version, php8.5-dev, so that a phpize command is created with that version, phpize8.5. For PIE the name of the command doesn't matter.
The installation command is simply pie install xdebug/xdebug. Run php --version to verify xdebug is enabled. And optionally check the config file if you need to make changes.
Usage
I'm still exploring the debug possibilities. But for the pipe operator it can intercept the intermediate values, that is cool.
Happy debugging!
Top comments (0)