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

相关推荐
盛世宏博智慧档案11 小时前
高速 ETC 门架外场机房温湿度远程监测解决方案
服务器·数据库·php·高度·高速·温湿度
承渊政道11 小时前
【Python编程—从入门到实践】(Python字典:从基础语义到现代工程实践)
开发语言·python·pycharm·字典·嵌套
luj_176812 小时前
一线一区一变破解人盯人防守密码
开发语言·网络·c++·经验分享·算法
名字还没想好☜12 小时前
Python 字符编码实战:encode/decode、UnicodeDecodeError 与 open 的 encoding 坑
开发语言·后端·python·编程语言
萧瑟余晖12 小时前
持久层选型与框架对比详解
开发语言·架构
CodeStats12 小时前
【Java 类加载器】Java 类加载器完整体系深度拆解(上):从 JVM 启动到双亲委派模型
java·开发语言·jvm·classloader·双亲委派
软件黑马王子12 小时前
24.Editor 资源加载:主要作用和基本原理
开发语言·前端框架·c#
luj_176812 小时前
中锋卡位与开放线博弈
c语言·开发语言·网络·经验分享·算法
祁白_12 小时前
防御引擎绕过方法
笔记·web安全·php·防御引擎
未来之窗软件服务12 小时前
计算机二级[英文]-C 逻辑运算和fopen—东方仙盟
c语言·开发语言·仙盟创梦ide·东方仙盟