您的位置:首页 > 其它

wamp 2.4开启xDebug

2015-11-27 11:10 519 查看
wamp 2.5 安装在D:\Server\wamp\中,打开D:\Server\wamp\bin\apache\apache2.4.9\bin\php.ini:

[plain]
view plaincopy

[curl]  
; A default value for the CURLOPT_CAINFO option. This is required to be an  
; absolute path.  
;curl.cainfo =  
  
; Local Variables:  
; tab-width: 4  
; End:  
  
; XDEBUG Extension  
  
zend_extension = "D:/Server/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll"  
;  
[xdebug]  
xdebug.remote_enable = on  
xdebug.profiler_enable = off  
xdebug.profiler_enable_trigger = off  
xdebug.profiler_output_name = cachegrind.out.%t.%p  
xdebug.profiler_output_dir = "D:/Server/wamp/tmp"  
xdebug.show_local_vars=0  

将xdebug.remote_enable = off 改为 xdebug.remote_enable = on,然后重启服务。

在Zend Studio中添加apache服务器:





设置debuger为xDebug:



在工程中就可以开启xDebug进行调试了:



如果启动后发现一直在等待xDebug会话,请检查xDebug默认端口9000是否被占用,或者浏览器是否设置了代理
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: