« Introduction to PostgreSQL | Main | Rasmus Lerdorf: Fast and Rich Apps »

March 30, 2006

PHP Debugging with XDebug

Listening to a presentation on using Xdebug for PHP debugging by Derick Rethans at PHP Quebec.

If you have pear installed it's easy (pear install xdebug-install), otherwise you can download and do the install manually. After that there's a configuration option to add to php.ini. PHP --enable-versioning and most Zend extensions will prevent the debugger from working.

Xdebugger shows the error and then the output of the stack trace of calls through the code.

The debugger gives web-based results but also has a shell-based debugger. Derick shows using the debugger in ActiveState's Komodo IDE, entering breakpoints and stepping through a particular script. Cool stuff.

Posted by mike at March 30, 2006 3:47 PM