User login

Installing XDebug with Mac OS X MAMP: disable PHP Zend Optimizer

Added Xdebug
Inspired to finally install by Visual Backtrace.

MAMP and XDebug:
http://www.openkomodo.com/blogs/jeffg/php-leopard-or-how-use-mamp-instead
more in depth:

http://phplens.com/phpeverywhere/node/view/52

phpeclipse xdebug
http://plog4u.org/index.php/Using_PHPEclipse_:Installation:_Installing_the_XDebug_Debugger

http://git.or.cz/gitwiki/EclipsePlugin
http://repo.or.cz/w/egit.git

The guide:
http://www.thinkingphp.org/2007/09/21/setting-up-xdebug-on-mac-os-x-or-win32-linux/

That killed MAMP overall:

Ebony-II:logs ben$ tail -f apache_error_log

[19-Mar-2008 18:30:47] PHP Fatal error: [Zend Optimizer] Zend Optimizer 3.2.2 is incompatible with Xdebug 2.1.0-dev in Unknown on line 0

^C

Asked at a Drupal meetup, since I was there. Moshe said: don't use Zend optimizer.

After getting rid of (commenting out) the three lines about Zend optimizer in php.ini, it failed a couple times but then started working. Beats me. Here's the output. But the main thing: it did work after another restart or two.

Ebony-II:logs ben$ tail -f apache_error_log

[Tue Mar 11 11:13:25 2008] [error] child process 982 still did not exit, sending a SIGKILL
[Tue Mar 11 11:13:25 2008] [error] child process 983 still did not exit, sending a SIGKILL
[Tue Mar 11 11:13:25 2008] [error] child process 984 still did not exit, sending a SIGKILL
[Tue Mar 11 11:13:25 2008] [error] child process 995 still did not exit, sending a SIGKILL
[Tue Mar 11 11:13:25 2008] [error] child process 1006 still did not exit, sending a SIGKILL
[Tue Mar 11 11:13:26 2008] [notice] caught SIGTERM, shutting down
[Wed Mar 19 19:10:15 2008] [notice] Digest: generating secret for digest authentication ...
[Wed Mar 19 19:10:15 2008] [notice] Digest: done
[Wed Mar 19 19:10:15 2008] [notice] Apache/2.0.59 (Unix) PHP/5.2.5 DAV/2 configured -- resuming normal operations
[Wed Mar 19 19:10:23 2008] [notice] caught SIGTERM, shutting down
[Wed Mar 19 19:59:07 2008] [notice] Digest: generating secret for digest authentication ...
[Wed Mar 19 19:59:07 2008] [notice] Digest: done
[Wed Mar 19 19:59:07 2008] [notice] Apache/2.0.59 (Unix) PHP/5.2.5 DAV/2 configured -- resuming normal operations

Resolution

Searched words: 
xdebug

Comments

and on XAMPP

/Applications/xampp/xamppfiles/lib/php/php5/extensions/no-debug-non-zts-20060613

xdebug xampp mac osx
/xdebug.so

Link to visualize backtrace is incorrect

Please update your link to visualize backtrace with the following: http://drupal.org/project/visualize_backtrace

Thank you for your article!

P.S. PLEASE update your captcha, i had to fight it no less than 20 times to get this posted. thanks.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.