eclipse pdt/wamp/xdebug调试环境配置

1、xdebug下载:http://xdebug.org/download.php,xdebug版本根据php版本和php是否ts下载。

php是否ts可通过phpinfo()查看Zend Extension Build

将下载下来的dll放到php目录的/ext下,并重命名为:php_xdeubg.dll


2、在php.ini中配置xdebug
zend_extension = "e:/wamp/bin/php/php5.3.10/ext/php_xdebug.dll"
[xdebug]
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 17000
xdebug.profiler_enable = true
xdebug.profiler_enable_trigger = true
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "e:/wamp/tmp"


3、在eclipse pdt中配置debug




4、eclipse 的debug configuration





FAQ:waiting for xdebug session 57%错误的解决方法:

1)由于php.ini中xdebug.remote_host 为127.0.0.1,因此访问地址必须为http://127.0.0.1,如果为http://localhost则会出现这个错误;

2)如果配置以后还是不行,可能是9000端口被占用了,将php.ini中的xdebug.remote_port改为其他值,修改了php.ini后,还需要在eclipse做相应的修改:

   




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值