How To Debug PHP Code And Useful PHP Debugging Tools

PHP does not have an internal debugging facility. You can use only external tools to debug PHP code. Here i tried to list down PHP debugging tools, which are extremely useful, but listing down these tools was not enough because you don’t know how to use them so i have compiled those tutorials too.

Here is the list of tools:

PHP Debugging Tools

1. Gubed PHP Debugger

Gubed is a cross platform program to debug PHP scripts.

Gubed PHP Debugger

2. PHP Debug

The basic purpose of PHP_Debug is to provide assistance in debugging PHP code, by “debug” i don’t mean “step by step debug” but program trace, variables display, process time, included files, queries executed, watch variables.

PHP Debug

3. DBG

DBG is a a full-featured php debugger, an interactive tool that helps you debugging php scripts.

DBG | PHP Debugger and Profiler

4. PHP Dyn

PHP Dyn is PHP Extension to help debugging a PHP script.You can get execution trace of scripts not to need change them.HTTP request parameter can be printed.Argument value of the function call and return value can be printed.

PHP Dyn

5. Xdebug

The Xdebug extension helps you debugging your script by providing a lot of valuable debug information.

Xdebug extension

5. Webgrind

Webgrind is an Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms.

Webgrind PHP Debugger

6. MacGDBp

Debugging a live, running PHP application has never been so easy. It’s a live PHP debugger application for the Mac OS.

MacGDBp PHP Debugger

7. Advanced PHP Debugger

APD is a full-featured profiler/debugger that is loaded as a zend_extension. It aims to be an analog of C’s gprof or Perl’s Devel::DProf.

Advanced PHP Debugger

How To Debug PHP Code

How to Debug PHP Using Firefox with FirePHP

This article shares an elegant, simple, and more maintainable way of debugging Ajax apps via the web browser (more specifically for the Mozilla Firefox browser). You’ll learn the basics of leveraging Firefox in conjunction with Firebug and FirePHP to implement FirePHP libraries on web apps and logging messages in the Firebug console.

Debug PHP Using Firefox with FirePHP

How to Debug in PHP

This article breaks down the fundamentals of debugging in PHP, helps you understand PHP’s error messages and introduces you to some useful tools to help make the process a little less painful.

How to Debug in PHP

Debugging PHP using Eclipse and PDT

Use XDebug or Zend Debugger to boost your productivity when fixing bugs in PHP applications.

Debugging PHP using Eclipse

Debugging PHP with Xdebug

The Xdebug is the extension for PHP that helps debugging PHP scripts by providing a lot of valuable debug information. The debug information includes stack traces and function traces in error messages, memory allocation and protection for infinite recursions.

Debugging PHP With Xdebug

Debug PHP with DBG Wizard

You can easily debug PHP with PhpED’s PHP Debugger. Setting up your system to debug php scripts can be tricky but PhpED’s Settings Wizard can take care of the majority of the debugging configurations.

Debug PHP with DBG Wizard

14 thoughts on “How To Debug PHP Code And Useful PHP Debugging Tools”

  1. I cannot say enough good things about Netbeans (which incorporates XDebug).

    Code completion, navigation, easy subversion management… I could go on…

    A thing of beauty!

  2. Pingback: Weekly Design News – Resources, Tutorials and Freebies (N.34) « Film and entertainment
  3. Pingback: Weekly Design News – Resources, Tutorials and Freebies (N.34) | Master
  4. It’s not a “real” debugger, but there is an openbsource PHP debug_object on sourceforge. It’s a take on instrumenting your code, but leaving all that debug code in, and then having an easy way to turn it on and off. For those that don’t “need” a real debugger, this is the best “instrumentation” take I’ve seen.

    John.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>