Repris d’un site dédié à XAMPP, à adapter :
- Download Xdebug for the specific PHP version:
- PHP 8.0 (64-Bit): https://xdebug.org/files/php_xdebug-3.2.0-8.0-vs16-x86_64.dll
- PHP 8.1 (64-Bit): https://xdebug.org/files/php_xdebug-3.2.0-8.1-vs16-x86_64.dll
- PHP 8.2 (64-Bit): https://xdebug.org/files/php_xdebug-3.2.0-8.2-vs16-x86_64.dll
- Move the downloaded dll file to:
C:\xampp\php\ext
- Rename the dll file to:
php_xdebug.dll
- Open the file
C:\xampp\php\php.ini
with Notepad++ - Disable output buffering:
output_buffering = Off
- Scroll down to the
[XDebug]
section (or create it) and copy/paste these lines:
[XDebug]
zend_extension=xdebug
xdebug.mode=debug
xdebug.start_with_request=trigger
- Restart Apache