php安装xdebug 用komodo进行调试

php安装xdebug 用komodo进行调试


下载服务器相关版本的xdebug


1. Unpack the tarball: tar -xzf xdebug-2.1.x.tgz


2. cd xdebug-2.1.x


3. Run phpize: phpize


4. ./configure --enable-xdebug 
如果你的php不是用的rpm包安装的,可能是用tar包安装的,请这样: ../configure --enable-xdebug  --with-php-config=/path/to/php-config


5. Run: make


6. cp modules/xdebug.so  /to/wherever/you/want/it
我的是tar包安装的,所以: cp modules/xdebug.so /usr/lib/php/modules/


7. 在php.ini中添加
[xdebug]
zend_extension = /usr/lib/php/modules/xdebug.so
xdebug.remote_enable=1
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=192.168.1.79
xdebug.remote_port=9000


调试的时候在网站的URL后面加上如下字符串就行:
&XDEBUG_SESSION_START=on 

注意:是Get传参,对于有些网站点击调试的时候,浏览器地址栏不变,应为他们是post传参,他们表单的action可能是空,所以用firebug编辑form表单的Action ,把action改成“URL+&XDEBUG_SESSION_START=on”



Cheap UGG Boots For Women offers all kinds of UGG Boots up to 70% off and free shipping! www.cheapuggbootsforwomen.biz

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值