Home >Backend Development >PHP Problem >How to install xdebug extension in php
How to install xdebug extension in php: 1. Enter the xdebug official website; 2. Paste the current phpinfo information on the user download guide page; 3. Download the plug-in and place the plug-in in the specified directory; 4. Add xdebug settings; 5. Check whether the plug-in is installed successfully; 6. Configure phpstorm.
The operating environment of this article: windows7 system, phpstorm 2020 version, DELL G3 computer
php install xdebug extension, PHPStorm XDebug single step Debugging
Scenario
When using IDE editors such as phpstorm to write PHP code, in order to make debugging more convenient, we need to install a PHP extension plug-in xdebug. The current running environment of this example is the phpstudy integrated environment.
Enter the URL in the browser: https://xdebug.org or directly search for xdebug to enter the website.
Click download below to enter the download page. Click on the custom installation instructions link.
zend_extension = "D:\phpStudy2018\PHPTutorial\php\php-7.1.13-nts\ext\php_xdebug-2.7.2-7.1-vc14-nts.dll"xdebug.remote_enable=1xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9000xdebug.idekey="PHPSTORM"step5 Restart phpstudy and check whether the xdebug plug-in is installed Success step6 Configure phpstorm
##After the above steps, we have installed the xdebug extension of php and configured the relevant configurations in phpstorm. Now we can use the xdebug function of phpstorm for debugging.
The above is the detailed content of How to install xdebug extension in php. For more information, please follow other related articles on the PHP Chinese website!