xdebug设置 (for php5.2.9-2), eclipse调试

引用:http://aofengblog.blog.163.com/blog/static/631702120117283414706/

 

Xdebug设置

  • 先安装wamp for php 5.4到d:/dev
  • 打开 D:\dev\wamp\bin\apache\Apache#\bin\php.ini,在末尾看到
  • 只要把xdebug.remote_enable = off on 就可以了

 

; XDEBUG Extension

zend_extension = "D:/dev/wamp5.3.13/bin/php/php5.3.13/zend_ext/php_xdebug-2.2.0-5.3-vc9.dll"

[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "D:/dev/wamp5.3.13/tmp"
 

 

4. 重启wamp

 

To actually start a debug session, you must pass a parameter XDEBUG_SESSION_START to the script by GET, POST, or cookie. 

The value of this parameter is the debug session name, which should be unique at a given point in time, 

so that xdebug can distinguish different debug sessions running concurrently. 

To end a debug session, you need to pass XDEBUG_SESSION_STOP to the script. 

========== config

*** xdebug.remote_mode

There are two different modes of starting a debug session with xdebug. 

They are controlled by the php.ini setting . 

The default setting is req, which makes xdebug always connect to the debug client when a script is started.

If you want xdebug to only connect to the debug client on a breakpoint or an error in the script, 

you can set xdebug.remote_mode to jit. 

I would recommend keeping the default setting, which is the default setting


Eclipse调试

  • PHP Executable

  • PHP Debug
  • Debug As

  • Launch URL

  • Web Browser

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值