

Open the php.ini file and make sure the following lines are present: Loaded Configuration File: C:\Program Files\PHP\v8.1\php.ini The command will output similar lines: Configuration File (php.ini) Path: You can locate it by running the following command: php -ini You will need to edit PHP Configuration file The tool will give you the correct version to download.Ĭopy downloaded binaries into the PHP extensions folder( ext sub-folder of the PHP installation). Copy and paste your phpinfo() function output or output of php -i command.

You can use the tool provided by Xdebug developers: Xdebug Wizard. If you already have PHP installed, but missing Xdebug, download binaries directly from XdebugĬhoose the version depending on your PHP version. Adding Xdebug to existing PHP installation XAMPP or WAMPP will install and configure PHP, Xdebug and Apache server. When I run phpinfo.php with apache restarted I have no information about xdebug.To debug PHP applications with PHP Tools for Visual Studio Code, it is necessary to install and enable Xdebug extension. I restarted lampp and nothing seems to work for now.

I changed also xdebug.ini with zend_extension=/opt/lampp/lib/php/extensions/xdebug.so I copied xdebug.so to /opt/lampp/lib/php/extensions and changed my php.ini with the entry zend_extension=”zend_extension=/opt/lampp/lib/php/extensions/xdebug.so” The packages contain builds for all php versions. Instead of compiling over source xdebug I downloaded the working builds from ActiveState (the makers of the Komodo IDE) provide their pre-compiled binaries of xdebug they use in their IDE. I did: /opt/lampp/bin $ phpenmod xdebug And it created me a xdebug.ini in /etc/php/7.0/mods-available with zend_extension=/usr/lib/php/20151012/xdebug.so I don't know what seems to be the error or what are missing.

I created a php file to see the state of the server:Īfter restart apache I have no information about xdebug running. I have installed xdebug from source in my system and add to my php.ini the following code at the end of the file:
