Configure VSCode with XDebug

Check if xdebug is already installed: http://localhost:8080/phpinfo.php
Find the config file (ini file) on the above page then open it
<XDEBUG 2.X>

Make sure it’s enabled

Then restart php7.3-fpm service

Check the xdebug properties on the page above: http://localhost:8080/phpinfo.php

Open VSCode then find and install ‘PHP Debug’ extension
</XDEBUG 2.X>

<XDEBUG 3.X>

ALSO FOR THE OTHERS PHP (7.4, 8.0, 8.1, 8.2)

Make sure it’s enabled

Then restart apache2 service

Check the xdebug properties on the page above: http://localhost:8080/phpinfo.php

</XDEBUG 3.X>

Leave a Reply

Your email address will not be published. Required fields are marked *