To install Xdebug on our Windows computer, we can use the installation wizard available on the Xdebug website at https://xdebug.org/wizard.
On the textarea we should paste the HTML source of phpinfo() or the CLI output of the php -i command.
Once we have pasted the output, and submitted it, there will be some instructions that we should follow to install it.
First, we download the
php_xdebug.dllto our computer.Next, we move the file to the
extfolder next to our PHP installation.Finally, we update the
php.inifile to enable it. Below thezend_extension = opcacheline we should add the following:
zend_extension=php_xdebug.dll
xdebug.mode=debug,develop,coverageNow we have successfully installed Xdebug on our system.