This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » Installing XDebug in Mac OS X Leopard w/ MAMP
Installing XDebug in Mac OS X Leopard w/ MAMP [message #70161] Sun, 18 January 2009 18:38 Go to next message
juan294  is currently offline juan294
Messages: 18
Registered: June 2006
Location: Caracas, Venezuela
Junior Member
Hi, it took me a lot of time making XDebug work with my MAMP installation so I'm going to resume every stage of my solution for those of you who face the same problem.

First of all my platform:

When I tried to run the test coverage for the first time (symfony test:coverage) I got this Symfony message stating that I needed to install and enable xdebug before using lime coverage.

Then it began that unwanted journey that I hopefully will avoid for you. I found a really good tutorial but it just didn't worked out right away. I had to get deep into the questions below the post to find the right path for me. This is what you need to do:

1) Download the latest Xdebug binaries for your OS from: gging. I downloaded Komodo version 5.x (PHP Remote Debugging - Mac OS X / x86 - tar - 1.5MB)

2) Extract the content and look for the file. Copy the for your PHP version to your extensions directory. For MAMP this was: " /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non- zts-20050922/ "

3) "Find your php.ini file" is the general instruction out there, but for me it came out to modifying two of them. One at: "/Applications/MAMP/conf/php5/php.ini", and the other one at: "/Applications/MAMP\ PRO\ 1.7/MAMP\". You have to add this two lines at the very end of the file (it will require a server restart after the modifications):


4) Comment from that same two files the lines corresponding to the Zend optimizer. It happens to be some kind of incompatibility issue between them. When I tried to run the test without commenting those lines I kept receiving the message: "PHP Fatal error: [Zend Optimizer] Zend Optimizer 3.3.3 is incompatible with Xdebug 2.1.0-dev in Unknown on line 0".

Once you've done this, you should be able to run your unit tests without a problem.

Another image here to resume my quest from the first error message to the end of the journey:

I really hope this can save some time for those of you with the same problem.

Have a nice day Smile

p.d. I'm attaching the library for those of you who are really really lazy (like me).

  • Attachment:
    (Size: 172.15KB, Downloaded 146 time(s))

Juan A. González P.
IT Consultant
Caracas - Venezuela
Re: Installing XDebug in Mac OS X Leopard w/ MAMP [message #83310 is a reply to message #70161 ] Thu, 06 August 2009 19:59 Go to previous messageGo to next message
talfstad  is currently offline talfstad
Messages: 4
Registered: August 2009
Location: usa san diego
Junior Member
Hey Juan,
I appreciate you taking the time to describe this! I just used your solution and it worked very well.

Thank you,

Re: Installing XDebug in Mac OS X Leopard w/ MAMP [message #87246 is a reply to message #70161 ] Fri, 23 October 2009 17:20 Go to previous messageGo to next message
facetasm  is currently offline facetasm
Messages: 10
Registered: September 2007
Location: Cologne
Junior Member
Thanks for the great (and fas and easy to use) tutorial on installing xdebug - this worked for me, too!

I'm using PHP Version 5.2.5 from on MAC OS 10.5.8.

Only difference: I didn't get the Zend Optimizer error.

Re: Installing XDebug in Mac OS X Leopard w/ MAMP [message #101004 is a reply to message #70161 ] Tue, 15 June 2010 22:39 Go to previous message
u2rfunky  is currently offline u2rfunky
Messages: 1
Registered: June 2010
Junior Member
The latest version of MAMP (version 1.9) comes with XDebug already installed. The php.ini file already has the line:

zend_extension=" /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-no n-zts-20090626/ "

But you need to uncomment it.
Previous Topic:sfControlPanel 500 error
Next Topic:Memory exhausted [topics merged]
Goto Forum:

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software