I am trying to debug some PHP code and wanted to download the XDebug debugger for PHP. All I see there is Windows binaries for downloading. Is it at all possible to use it
Proper way to install XDEBUG for newest version of LAMPP:
Download: XDEBUG latest version called source.
Extract file to any folder.
Open this folder with terminal.
Change X.X.X to Your actually version of php
Execute the following commands in your terminal.
/opt/lampp/bin/phpize-X.X.X
./configure --with-php-config=/opt/lampp/bin/php-config-X.X.X
make
cp modules/xdebug.so /opt/lampp/lib/php/extensions/no-debug-non-zts-20170718
Now we need edit file php.ini
Open folder where is file php.ini in terminal:
sudo nano ./php.ini
Add to the end of file this:
zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so
Open LAMPP folder in terminal
Now restart Apache.
sudo ./xampp restart
And now You can check phpinfo() to see XDEBUG is installed.