![]() ![]() If you do not see the section above in your phpinfo output, there may be something wrong with your PHP configuration or you may need to restart your web server to let PHP update its configuration. You should see the Xdebug section in the output. Open the corresponding URL in your browser. To verify your Xdebug installation, follow these steps:Ĭreate a simple PHP file containing the following: ![]() Note that restarting nginx will not reload php.ini! You will need to restart PHP, or your server. 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). PHP Tools for Visual Studio has a configuration check feature that can recommend and apply configuration changes depending on your system.These extensions should be commented out. ![]() Xdebug is incompatible with the Zend Optimizer and Zend Studio Debugger extensions.From PHP 5.3 onwards, you need to use zend_extension and not zend_extension_ts.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. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |