计算机学习

您现在的位置是:首页 > php > 正文

php

xdebug3安装

hhb2022-04-09php105
下载对应版本的xdebug打开 https://xdebug.org/wizard。把phpinfo()的信息复制到输入框,然后点击。

下载对应版本的xdebug

打开 https://xdebug.org/wizard

1649436903(1).png


把phpinfo()的信息复制到输入框,然后点击。

1649437108(1).png

下载对应版本.我这里是用xdebug3.

修改php.ini

[xdebug]
zend_extension ="D:\D\phpStudy-v8.1\phpstudy_pro\Extensions\php\php7.3.4nts\ext\php_xdebug.dll"

xdebug.collect_params=1
xdebug.collect_return=1
xdebug.auto_trace=On
xdebug.trace_output_dir=D:/D/phpStudy-v8.1/phpstudy_pro/Extensions/php_log/php7.3.4nts.xdebug.trace
xdebug.profiler_enable=On
xdebug.profiler_output_dir ="D:\D\phpStudy-v8.1\phpstudy_pro\Extensions\tmp\xdebug"
xdebug.remote_enable=On
xdebug.remote_host=localhost
xdebug.remote_port=9050
xdebug.remote_handler = dbgp
xdebug.idekey=PHPSTORM

其中zend_extension为php_xdebug.dll的路径.xdebug.remote_port=9050 为phpstorm设置的端口


配置phpstorm

设置监听端口跟php.ini文件的xdebug.remote_port要一致

image.png



image.png

image.png

发表评论

评论列表

  • 这篇文章还没有收到评论,赶紧来抢沙发吧~