Eclipse 配置XDebug图文详解

1.php.ini配置

eaccelerator.shm_only="0"

zend_extension ="D:\xampp\php\ext\php_xdebug.dll"

;载入Xdebug

[xdebug]

;开启远程调试

xdebug.remote_enable = 1

xdebug.profiler_enable = off

xdebug.profiler_enable_trigger = off

xdebug.profiler_output_name =cachegrind.out.%t.%p

xdebug.profiler_output_dir ="D:\xampp\tmp"

xdebug.show_local_vars=0

 

;开启自动跟踪

xdebug.auto_trace = 1

;开启异常跟踪

xdebug.show_exception_trace = 1

;开启异常跟踪

xdebug.remote_autostart = 1

;收集变量

xdebug.collect_vars = 1

;收集参数

xdebug.collect_params = 1

;trace输出路径

xdebug.trace_output_dir ="D:\xampp\tmp"

;以下三个分别是主机、端口、句柄

xdebug.remote_host="127.0.0.1"

xdebug.remote_port=9000

xdebug.remote_handler="dbgp"

 

 

 

 

2.eclipse配置修改

2.1.     位置:windows->Preferences

2. 2      配置Executables(配置完成后,若设置断点能正常让XDebug运行,则无需继续设置其他选项)


 

 

 

2.3.配置 PHP Debug

将Server Settings下的Debugger设为XDebug

 

 

 

2.4.配置Debuggers

 

 


2.5配置workbench Options


  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值