«
DRX
Web Developer Resource Index: Debugging
PHP Debugging is no different than debugging software written in any programming language.
You want a tool that allows you to execute your code in slow motion, stepping through
it line by line, either entering into function calls while displaying parameters, or
stepping over them, setting watch points, monitoring or setting variables, stopping
and restarting execution, performing stack traces, tracking memory allocation, and so
on. Some advanced debuggers even have the ability to simulate the instruction sets
of more that one CPU.
When it comes to debugging PHP applications, Xdebug is the only way to go. It has the vast majority of the features listed above—except for the last one—which is normally only reserved for low-level programming languages such as C.
Xdebug also has a built-in profiler, with output in Cachegrind format. After profiling is complete, simply fire-up your favorite viewer to analyze the results.
In addition to Xdebug, there are a number of other tools, techniques, resources, and articles listed in PHP Debugging.
Updated: Friday, November 14th, 2008 @ 3:09 PM EST
Navigation
Resources
-
1.
Xdebug
Available in source form, or as Linux and Windows binaries, Xdebug is a powerful client tool you can leverage to run stack and function traces through your PHP code, check for logical and other errors, and find bottlenecks using the profiling features. [1692]
★★★★☆
URI:http://xdebug.org/
Author:Derick Rethans [2]
Reviewed:Thursday, October 12th, 2006 @ 11:37 PM EDT
by:Douglas Clifton
Xdebug
debuglinuxopen-sourcephpzend
-
2.
Eclipse PHP Development ToolsDownload and install version 1.0 of the Eclipse PHP Development Tools (PDT). Eclipse PDT is a set of tools and frameworks that enhance the productivity of developers using PHP. The package includes both the Zend Executable plugin and Web Server debuggers. [1826]
★★★★☆
URI:http://www.zend.com/community/pdt
Author:Eclipse Foundation [2]
Reviewed:Friday, November 14th, 2008 @ 3:09 PM EST
by:Douglas Clifton
Eclipse PHP Development Tools
debugdeveloperidephpprogrammingtools
-
3.
Debugging PHP using Eclipse and PDTThe Eclipse PHP Development Tools (PDT) plug-in supports both Xdebug and the Zend Debugger. If you're more of an IDE person and develop PHP applications, then this article is a good starting point towards using the environment to debug your PHP code. [1825]
★★★★☆
URI:http://www.ibm.com/developerworks/edu/os-dw-os-php-eclipse-pdt-debug....
Author:Nathan Good [1]
Reviewed:Friday, November 14th, 2008 @ 2:46 PM EST
by:Douglas Clifton
Debugging PHP using Eclipse and PDT
debugdeveloperidephptutorialzend
-
4.
Debugging and Profiling PHP Applications with XdebugA five part series of articles on tracing, debugging, code coverage, and profiling PHP applications. The series begins with an brief introduction to the tool and explains how to install and configure it. The subsequent articles cover each topic in detail. [1824]
★★★★☆
URI:http://devzone.zend.com/article/2803-Introducing-xdebug
Author:Stefan Priebsch [1]
Reviewed:Friday, November 14th, 2008 @ 2:18 PM EST
by:Douglas Clifton
Debugging and Profiling PHP Applications with Xdebug
configdebughowtoinstallphpprofilingtutorial
-
5.
FirePHPEnables you to log to your Firebug Console using a simple PHP method call. Data is sent via HTTP response headers and will not interfere with the content on your page. It's designed for Ajax development where clean JSON and XML responses are required. [1817]
★★★★☆
URI:http://www.firephp.org/
Author:Christoph Dorn [1]
Reviewed:Wednesday, November 12th, 2008 @ 12:06 PM EST
by:Douglas Clifton
FirePHP
ajaxdebugfirebughttpjsonphpprogrammingtoolsxhrxml
-
6.
PHP Debugging in Ubuntu using Xdebug and VimI'm a big fan of using Ubuntu as a desktop environment, and for local development as well. In this article Liam walks even a beginner through the steps to set-up a complete LAMP stack, and then installing Xdebug and configuring Vim with the DBGp plugin. [1796]
★★★★☆
URI:http://www.apaddedcell.com/easy-php-debugging-ubuntu-using-xdebug-and...
Author:Liam McDermott [1]
Reviewed:Monday, November 3rd, 2008 @ 10:04 PM EST
by:Douglas Clifton
PHP Debugging in Ubuntu using Xdebug and Vim
apachedebuglinuxmysqlphpprogrammingubuntuvim
-
7.
dBugdBug is a PHP class that displays structured information about a variable in a colored, tabular format. Simply put, it's PHP's var_dump function on steroids. With a name like dbug, all I can say is why didn't I think of that! (dbrowse, dcal, drx, hmm...). [1579]
★★★★☆
URI:http://dbug.ospinto.com/
Author:Kwaku Otchere [1]
Reviewed:Sunday, January 1st, 2006 @ 10:12 PM EST
by:Douglas Clifton
dBug
debugoopphp
-
8.
Debugging Techniques for PHP ProgrammersThis article details various methods for debugging PHP applications, including turning on error reporting in Apache and PHP, and by placing strategic print statements to locate bugs in a sample PHP script. Also introduces PHPEclipse and DBG for Eclipse. [1572]
★★★★☆
URI:http://www-128.ibm.com/developerworks/opensource/library/os-debug/
Author:Tyler Anderson [1]
Reviewed:Thursday, December 8th, 2005 @ 2:18 PM EST
by:Douglas Clifton
Debugging Techniques for PHP Programmers
apachedebugphpprogramming
Related Categories
Matching Tags
ajax apache config debug developer firebug howto http ide install json linux mysql oop open-source php profiling programming tools tutorial ubuntu vim xhr xml zend
Indexes
Search for PHP Debugging on:

Last updated: Friday, November 14th, 2008 @ 3:09 PM EST [2008-11-14T20:09:03Z]




















































































![PHP Cookbook [I own this title!]](/img/books/0596101015.jpg)

