php xdebug配置
1.sublime
火绒
火绒安装插件Xdebug Helper for Firefox
管理插件 -…-选项 填入ide key
sublime
第一个插件package control
ctrl+shifit+p 输入install 点击安装第一个包管理 package control
第二个插件 xdebug
ctrl+shifit+p 输入xdebug clinet安装
php配置
这里用的时phpstudy_pro,php版本5.4.45,如果是单独下php的话,xdebug.dll需要另下
修改php.ini
php.ini配置,根据自己的文件位置进行修改
[XDebug]
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir ="E:\phpstudy_pro\Extensions\tmp\tmp\xdebug"
xdebug.trace_output_dir ="E:\phpstudy_pro\Extensions\tmp\tmp\xdebug"
xdebug.profiler_output_name = "cache.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
zend_extension="E:\phpstudy_pro\Extensions\php\php5.4.45nts\ext\php_xdebug.dll"
修改完php.ini重启服务器
使用
打开xdebug
ctrl+f8添加一个断点
火狐浏览器访问
成功收到
2.phpstrom
火绒
火绒安装插件Xdebug Helper for Firefox
管理插件 -…-选项 填入ide key
phpstrom设置
修改端口
设置服务器
验证xdebug是否能使用,全是对号是配置正确的
使用
phpstrom添加断点,代开xdebug,保证后面像电话的东西是联通的,也就是下面的状态
火绒访问
127.0.0.1/4.php,并把插件开关打开
phpstrom成功收到
步进 进入下一行php代码
步入 进入函数或类的定义
步出 出来这个函数
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构