其实这个插件我还是很少使用的,复习下【window7安装】。

首先检查下php的版本:

简单使用xdebug

进入xdebug下载页面:

https://xdebug.org/download.php

根据版本,我们选择对应的dll:

简单使用xdebug

经过实践,php_xdebug-2.6.0-7.0-vc14.dll在本人本机安装成功

打开php.ini进行配置XDEBUG

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[Xdebug]    
;指定Xdebug扩展文件的绝对路径    
zend_extension=D:/xampp/php/ext/php_xdebug-2.6.0-7.0-vc14.dll
;启用性能检测分析    
xdebug.profiler_enable=On  
;启用代码自动跟踪    
xdebug.auto_trace=on  
;允许收集传递给函数的参数变量    
xdebug.collect_params=On  
;允许收集函数调用的返回值    
xdebug.collect_return=On  
;指定堆栈跟踪文件的存放目录    
xdebug.trace_output_dir="D:/debug"  
;指定性能分析文件的存放目录    
xdebug.profiler_output_dir="D:/debug"  
xdebug.profiler_output_name = "cachegrind.out.%p"  
xdebug.remote_enable = On  
xdebug.remote_port=9000  
xdebug.remote_handler = dbgp  
xdebug.remote_host = localhost  

xdebug.var_display_max_depth = 10  

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

好了,保存重启Apache,搜索xdebug检测是否安装成功

之后就是编辑器的配置了,本人比较老土,一直采用zend studio

具体配置就不写了,根据这位老兄的来就好了:

https://blog.csdn.net/lamp_yang_3533/article/details/52661749


相关文章:

  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-04-01
  • 2021-12-25
猜你喜欢
  • 2021-10-22
  • 2021-12-03
  • 2021-12-24
  • 2021-11-21
  • 2021-11-27
  • 2021-07-24
  • 2021-08-10
相关资源
相似解决方案