返回

PHP调试配置

发布时间:2022-09-16 14:21:29 419
# php# phpstorm# 工具

PHP调试配置步骤如下:

1.在谷歌浏览器扩展工具中添加Xdebug helper

2.在PHPStorm配置debug,把debug port 改成9010,

这里的9010是要和PHP配置文件php.ini配置的xdebug.remote_port的值保持一致

php.ini配置的xdebug如下:

[xdebug]
zend_extension="D:\php-5.6.5\ext\php_xdebug-2.2.7-5.6-vc11-x86_64.dll"
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9010
xdebug.idekey = PHPSTORM

3.在action设置断点,在浏览器和phpstorm开启调试模式

OK 了

特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报
评论区(0)
按点赞数排序
用户头像
精选文章
thumb 中国研究员首次曝光美国国安局顶级后门—“方程式组织”
thumb 俄乌线上战争,网络攻击弥漫着数字硝烟
thumb 从网络安全角度了解俄罗斯入侵乌克兰的相关事件时间线