首先输出phpinfo();

https://xdebug.org/wizard.php 打开然后查看适合你的调试扩展版本 ,目前支持到php7.2

整个页面ctrl+a  复制进去

然后下载 扩展文件 下载到 ext目录下

在你的php.ini末尾加上,扩展文件的路径要注意  然后重启apache

[Debug]
zend_extension = C:\Code\XAMPP\php\ext\php_xdebug-2.6.-7.2-vc15.dll
xdebug.remote_enable = On
xdebug.profiler_enable = On
xdebug.profiler_enable_trigger = On
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="C:/wamp64/tmp"
xdebug.show_local_vars= xdebug.var_display_max_children=
xdebug.var_display_max_data=
xdebug.var_display_max_depth= xdebug.idekey=PhpStorm
xdebug.remote_enable = On
xdebug.remote_host=127.0.0.1
xdebug.remote_port=
xdebug.remote_handler=dbgp

打开phpstrom

配置你的php环境

然后打开 Files->Settings->Languages->PHP->Servers  添加一个环境  host 一定要填你项目的环境

Files->Settings->Languages->PHP->Debug

然后打开

然后点击小虫子 打开的这个参数非常重要

PHPStorm 监听到了

F8 单步调试 F7 进步方法 Shift+F8 跳出方法 常用的了

结束

最新文章

  1. 微信小程序文件结构
  2. phpmyadmin连接,管理多个mysql服务器
  3. Design / UX Consultation
  4. poj2137 dp
  5. java学习第七天
  6. 教你21天学会C++ (有图有真相)
  7. 【python】python的二元表达式和三元表达式
  8. BZOJ 3221: [Codechef FEB13] Obserbing the tree树上询问( 可持久化线段树 + 树链剖分 )
  9. 在ASP.net中的UpdatePanel,弹窗失败解决办法
  10. webstoem自动编译less文件
  11. API函数详解:API大全总目录(按字母排列)
  12. solr云的简单搭建(了解)
  13. Java上传和下载
  14. 插入排序(Python实现)
  15. 怎样从外网访问内网Memcached数据库
  16. webstorm keys
  17. JavaScript----特效代码
  18. [LeetCode&Python] Problem 762. Prime Number of Set Bits in Binary Representation
  19. linux 软件编译问题汇总
  20. 网络Socket编程UDP协议例子

热门文章

  1. ballerina 学习五 使用composer管理ballerina 项目
  2. istio 安装试用
  3. Cockpit 服务化管理工具
  4. SQL 中nvarchar和varchar到底能存多少汉字和英文
  5. python time模块 sys模块 random模块
  6. 软RAID 0的技术概要及实现
  7. laravel的model例子
  8. NumberUtils、ArrayUtils和RandomUtils工具类用法
  9. (转)Inno Setup入门(十九)——Inno Setup类参考(5)
  10. 【UVA】673 Parentheses Balance(栈处理表达式)