Skip to content

Installation#

You'll want to path your PHP version, installed at C:\xampp\php.

Copy your output from http://localhost/dashboard/phpinfo.php or php -i and paste into the wizard: https://xdebug.org/wizard

Download the appropriate version and paste into C:\xampp\php\ext, renaming to php_xdebug.dll.

Open C:\xampp\php\php.ini and add the following to the bottom:

zend_extension = xdebug

Restart Apache.

Verify the xdebug module is loaded on http://localhost/dashboard/phpinfo.php or php -i.

Next, reopen C:\xampp\php\php.ini and add the following lines to the bottom:

xdebug.mode = debug
xdebug.start_with_request = yes

Restart Apache and reload VSCode, you should now be able to debug.

Lastly, when using XAMPP, you'll notice the webpage fails to display:

<>

This is caused from a null route to an Xdebug config file, we will just disable this in the php.ini:

xdebug.log_level = 0

Restart Apache and verify web pages and debugging both work.