Downloadxdebug-2.5.4.tgz
Unpack the downloaded file withtar -xvzf xdebug-2.5.4.tgz
Run:cd xdebug-2.5.4
Run:phpize(See theFAQif you don't havephpize.
As part of its output it should show:
Configuring for:
...
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
If it does not, you are using the wrongphpize. Please followthis FAQ entryand skip the next step.
Run:./configure
Run:make
Run:cp modules/xdebug.so /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012
Edit/Applications/XAMPP/xamppfiles/etc/php.iniand add the line
zend_extension = /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so
Restart the webserver