phpstudy和IDEA 配置php debug

1.安装xdebug 扩展,phpinfo() 查看

2.配置php.ini

bash 复制代码
zend_extension=D:/phpstudy_pro/Extensions/php/php7.4.3nts/ext/php_xdebug.dll
xdebug.collect_params=1
xdebug.collect_return=1
xdebug.auto_trace=On
xdebug.trace_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.4.3nts.xdebug.trace
xdebug.profiler_enable=On
xdebug.profiler_output_dir="D:\phpstudy_pro\Extensions\tmp\xdebug"
xdebug.remote_enable=On
xdebug.idekey=PHPSTORM
xdebug.remote_autostart=On
xdebug.remote_host=localhost
xdebug.remote_port=9003
xdebug.remote_handler=dbgp

注意xdebug.idekey和xdebug.remote_port 要和稍后的IDEA一致。

3.配置php可执行路径

4.配置代理

5.配置主机、域名

6.点击apply后,重启IDEA。

7.打开

8.在显示代码行数上打断点

9.在浏览器上请求到打断点的方法,即可触发debug

相关推荐
David猪大卫5 小时前
【C++修炼】map 和 set 的使用
c语言·开发语言·数据结构·c++·经验分享·笔记·学习
fengci.6 小时前
CTF2MISC中等部分
开发语言·前端·学习
xys_6787 小时前
JavaEE通关手册:初识Java
java·开发语言
ShineWinsu8 小时前
对于Qt:QTableWidget常见属性以及QTableWidgetItem类的解析
开发语言·c++·qt·gui·客户端·表格·qtablewidget
ShineWinsu9 小时前
对于Qt:QListWidget常见属性以及QListWidgetItem类的解析
开发语言·c++·qt·客户端·列表·qlistwidget·qlistwidgetitem
吴名氏.10 小时前
Java转AI Agent教程(第十二周)检索与切分
java·开发语言·人工智能·ai·ai agent
瑞雪兆丰年兮10 小时前
JavaWeb-day10-SpringBootWeb案例
java·开发语言·javaweb·web
Elastic 中国社区官方博客11 小时前
更少的位数,相同的召回率:DiskBBQ 更保守的自动校准扫描
大数据·运维·开发语言·人工智能·elasticsearch·搜索引擎
三雷科技11 小时前
第6章第4节:自定义分词器
开发语言·c#
Adellle12 小时前
设计模式指南 (Java 版) ㊁
java·开发语言·设计模式