The XDebug extension comes with the XAMPP bundle, by default. You just have to enable it from the loaded .ini
file. Note that there could be multiple php.ini
files present, and the file location can be different between different operating systems. So, let's try it...
1. Locate the loaded
php.ini
file from yourphpinfo()
, by pointing your browser to http://localhost/xampp/phpinfo.php.You can see the loaded
php.ini
file located atD:\xampp\php\php.ini
.2. Open the
php.ini
file located atD:\xampp\php\php.ini
, and find the following line:[XDebug] ;zend_extension = "D:\xampp\php\ext\php_xdebug.dll"
3. Find and uncomment the following lines by removing the leading semicolon:
zend_extension = "D:\xampp\php\ext\php_xdebug.dll" xdebug.remote_enable = 1 xdebug.remote_handler = "dbgp" xdebug.remote_host = "localhost" xdebug.remote_port = 9000
4. Save the
php.ini
file and restart your Apache web server from the XAMPP control panel, to enable the XDebug...