wamp 2.4开启xDebug

wamp 2.5 安装在D:\Server\wamp\中,打开D:\Server\wamp\bin\apache\apache2.4.9\bin\php.ini:


[plain] view plain copy
  1. [curl]  
  2. ; A default value for the CURLOPT_CAINFO option. This is required to be an  
  3. ; absolute path.  
  4. ;curl.cainfo =  
  5.   
  6. ; Local Variables:  
  7. ; tab-width: 4  
  8. ; End:  
  9.   
  10. ; XDEBUG Extension  
  11.   
  12. zend_extension = "D:/Server/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll"  
  13. ;  
  14. [xdebug]  
  15. xdebug.remote_enable = on  
  16. xdebug.profiler_enable = off  
  17. xdebug.profiler_enable_trigger = off  
  18. xdebug.profiler_output_name = cachegrind.out.%t.%p  
  19. xdebug.profiler_output_dir = "D:/Server/wamp/tmp"  
  20. xdebug.show_local_vars=0  

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


在Zend Studio中添加apache服务器:


wamp 2.4开启xDebug_第1张图片


wamp 2.4开启xDebug_第2张图片


设置debuger为xDebug:

wamp 2.4开启xDebug_第3张图片


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


wamp 2.4开启xDebug_第4张图片


如果启动后发现一直在等待xDebug会话,请检查xDebug默认端口9000是否被占用,或者浏览器是否设置了代理

你可能感兴趣的:(wamp 2.4开启xDebug)