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

相关推荐
Humbunklung7 分钟前
Rust方法语法:赋予结构体行为的力量
开发语言·后端·rust
萧曵 丶13 分钟前
Rust 内存结构:深入解析
开发语言·后端·rust
算法练习生19 分钟前
Qt核心类QWidget及其派生类详解
开发语言·c++·qt
1024小神35 分钟前
tauri项目在windows上的c盘没有权限写入文件
c语言·开发语言·windows
老虎062743 分钟前
数据结构(Java)--位运算
java·开发语言·数据结构
yanjiaweiya44 分钟前
云原生-集群管理续
java·开发语言·云原生
Swift社区1 小时前
Swift 解 LeetCode 320:一行单词有多少种缩写可能?用回溯找全解
开发语言·leetcode·swift
写不出来就跑路1 小时前
暑期实习感悟与经验分享:从校园到职场的成长之路
java·开发语言·经验分享·spring boot
No Silver Bullet1 小时前
软件工程功能点估算法常用术语介绍
java·开发语言·软件工程
weixin_472339466 小时前
高效处理大体积Excel文件的Java技术方案解析
java·开发语言·excel