

Change Xdebug port to 9001 both in php.ini and in Visual Studio settings. Note: nginx server using FastCGI may block port 9000 by default.

The default value is 9000 (For Xdebug 3 it's 9003) and it is usually enough just to leave it as it is. Xdebug.remote_port setting has to be the same as in PHP Tools options (in Visual Studio, Tools | Options | PHP Tools | Advanced).

Zend_extension="C:\Program Files (x86)\PHP\v8.0\ext\php_xdebug.dll" Change the absolute path for Xdebug so it corresponds to the correct path on your system.

Its name is usually php.ini, and it is located within your PHP runtime folder.Īdd the following lines at the end of your configuration file depending on Xdebug version you have. Update PHP ConfigurationĮdit PHP Configuration file. PHP extensions folder is usually located within your PHP runtime, in ext subfolder.Ĭopy downloaded Xdebug binaries into the PHP extensions folder. Copy Xdebug binary to your PHP Extensions Folder It will give you the correct version to download. You can copy and paste your phpinfo output. You can also use the tool provided by Xdebug developers: Xdebug Wizard. It is strongly recommended to use the non-thread safe (NTS) version on Windows. Choose the Right Xdebug BinariesĬhoose the version depending on your PHP version. The Xdebug PHP extension is required to allow PHP Tools to integrate debugging features into Visual Studio.
