phpstorm配置xdebug
一、下载和安装PHPstorm
1.下载
下载地址:https://www.jetbrains.com/phpstorm/download/#section=windows
2.安装phpstorm
点击“next”
点击“next”
选择好路径,点击“next”
后面不用管,一直下一步即可。
二、使用phpstudy搭建
1.搭建网站
2.打开根目录,新建phpinfo.php文件
3.打开网站看看搭建成功
4.替换php_xdebug.dll文件
替换phpstudy_pro/Extensions/php/php7.3.4nts/ext目录下的php_xdebug.dll文件
5.配置php.ini文件
在php.ini文件中添加代码如下:
[Xdebug]
zend_extension="D:/phpstudy_pro/Extensions/php/php7.3.4nts/ext/php_xdebug.dll"
xdebug.profiler_enable=Off
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.idekey="PHPSTORM"
三、phpstorm Xdebug相关配置
配置debug
配置DBGp Proxy
配置php路径
配置debug configurations
如图即配置成功!