views:

87

answers:

2

Hi guys,

I've got xdebug installed fine (showing up in phpinfo()) but I'm trying to get it to work with PHPUnit's code coverage functionality. It keeps telling me "The XDebug extension is not loaded". I've got phpunit working fine with WAMP. When i run php -m i don't see xdebug listed in neither php modules nor zend modules which points as to why phpunit is not find the xdebug extension

Does anyone have any idea of this problem?

My detailed configuration is as follows: Windows 7 php 5.3.0 Apache 2.2.11 Zend Engine v2.3.0 Xdebug v2.1.0

Thanks, Krishnen

A: 

Hi,

Does WAMP have a different config file for the CLI and Apache? I use Ubuntu personally, but a quick google got me to this WAMP FAQ

HTH.

Robin
Hi, phpinfo indicates that the following ini file is loaded C:\wamp\bin\apache\Apache2.2.11\bin\php.ini...that's the one i modified added the following settings : [XDebug]zend_extension="C:\wamp\bin\php\php5.3.0\ext\php_xdebug.dll"xdebug.remote_enable = 1
krishnen
That path, i.e. `C:\wamp\bin\apache\Apache2.2.11\bin\php.ini` seems to indicate that you've only altered the APACHE PHP config file, not the CLI PHP config file. See edorian's answer for a pointer on how to find out which config file your CLI PHP is using.
Robin
you are right! am such an idiot..i added the zend_extension setting in the other CLI PHP config file and it now works on windows as well.Thks
krishnen
A: 

Thanks to all who answered. I repeated the procedure on a ubuntu workstation.This time i compiled everything from source.Everything worked to perfection and am now able to run the phpunit with coverage. This must be a windows specific issue.I'll just use a linux box for this process. Anyone having issues to setup xdebug on linux, i'll be glad to help!

krishnen