PHP 5.2 / xdebug builds
Update: Komodo 4.1 now ships with PHP 5.2 compatible builds. If you
need a different platform than the OS you are running Komodo on, you
can download separate remote debugging packages from our download site:
http://komodo.activestate.com/RemoteDebugging/4.1/
If you are not running Linux, WIndows or OS X, please see the documentation on xdebug.org for instructions on w to build xdebug from source:
Hi !
Thank you for binary xdebug.so for Mac OS X. However, I have tried to put it inside directory no-debug-non-sts-20050922 of MAMP 1.6. I have added the line zend_extension=/..../xdebug.so in php.ini. I can't find extension xdebug in phpinfo. So the extension isn't loaded.
The version of PHP5 in MAMP 1.6 is 5.2.1 and not 5.2.0. Is it the explication of this failure ?
Thank you for your answer.
Bernard Senior
Posted by: Bernard Senior | June 06, 2007 at 10:33 AM
Hi Bernard. This post is out of date, so I updated it with the current situation. For troubleshooting errors when loading xdebug, try the following:
1. make sure you are editing the correct php.ini, eg the php.ini reported in MAMP's phpinfo() page.
2. run this command at the terminal:
php -c /Applications/MAMP/conf/php5/php.ini -m
Do you see any errors?
Posted by: jeffg | June 06, 2007 at 10:47 AM
Thank you very much, Jeff, for your so fast answer !
1. The php.ini edited is inside this directory : /Applications/MAMP/conf/php5/
2. I have the error listed below :
dyld: NSLinkModule() error
dyld: Symbol not found: _zend_extensions
Referenced from: /Applications/MAMP/bin/php5/zend/lib/ZendExtensionManager.so
Expected in: flat namespace
Trace/BPT trap
I have tried this command in old version of MAMP : 1.3.1 et 1.1 and I have the same error.
If I put the file xdebug.so 5.2 in the right directory and update the php.ini, Apache doesn't start anymore.
Thank you for your help.
Posted by: Bernard Senior | June 06, 2007 at 11:50 PM
Hi Bernard,
It looks like you are running the Zend Optimizer extension. Please turn this off and (if need be) use APC or eAccelerator instead. The Zend Optimizer is not compatible with xdebug.
Posted by: jeffg | June 07, 2007 at 10:17 AM
Hi Jeff,
I've followed your piece of advice and now xdebug is running perfectly. Thank you very much for your kind help. My PHP project is growing and it was very critical for me to install a debugger.
Best regards.
Posted by: Bernard Senior | June 08, 2007 at 12:53 AM
this link is dead
http://komodo.activestate.com/RemoteDebugging/4.1/
I have found elsewhere xdebug.so. It is loading correctly in php 5.1 on a Mac PPC and working with the errors message ( with all the stack) but with the Eclipse Plug in it is not stopping at the break point. I am using Eclipse 3.3 Europa
Posted by: Pierre Labrie | September 01, 2007 at 11:20 AM
Xdebug builds are instead available at
http://downloads.activestate.com/Komodo/RemoteDebugging/
ActiveState does not support Xdebug / Eclipse integration issues, so you are pn your own with that.
Posted by: jeffg | September 04, 2007 at 09:18 AM
A couple notes to save some other folks some time on newer versions of MAMP (1.7):
a) While there is an /Applications/MAMP/Library/share folder, there is *not* a php folder in there. You'll have to create that yourself.
b) To turn off the Zend Optimizer, open up the MAMP program, click the "PHP" tab, and uncheck "Zend Optimizer."
Hope that helps!
Posted by: webchick | October 24, 2007 at 08:54 PM