Installing Xdebug for Windows

1. Download the latest version of Xdebug from xdebug.org.

2. Move the download file to following folder: {LARAGON_DIR}\bin\php\php-7.4.19-Win32-vc15-x64\ext

3. Open the following file in VSCode: {LARAGON_DIR}\bin\php\php-7.4.19-Win32-vc15-x64\php.ini

4. In VSCode, add the following lines of code to the end of the file.

[XDebug]
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

5. Save and close the file

6. From the Laragon application window, click the "Menu" button. Then select PHP -> Extensions -> php_xdebug-3.0.4-7.4-vc15-nts-x86_64.