Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The xdebug extension is not loaded

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

like image 390
krishnen Avatar asked Sep 29 '10 14:09

krishnen


2 Answers

  1. open php.ini.
  2. look for ;zend_extension
  3. remove ; at the beginning of ;zend_extension to enable it
  4. Be sure value of zend_extension is the right directory for the php_xdebug.dll
like image 77
JM R. Avatar answered Sep 19 '22 17:09

JM R.


Type php --ini on cmd and go to the php.ini file shown.

This php.ini need to have XDEbug configuration...

Mine is:

    
[XDebug]
; Only Zend OR (!) XDebug
zend_extension=C:\wamp\bin\php\php5.3.0\ext\php_xdebug-2.0.5-5.3-vc6.dll
; XAMPP and XAMPP Lite 1.7.0 and later come with a bundled xdebug at /php/ext/php_xdebug.dll, without a version number.
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
; Port number must match debugger port number in NetBeans IDE Tools > Options > PHP
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="c:\wamp\xdebug"
xdebug.var_display_max_depth = 10
xdebug.var_display_max_data = 2048

(please consider the breaking lines)

like image 25
Ricardo Martins Avatar answered Sep 20 '22 17:09

Ricardo Martins