How To Debug PHP Code And Useful PHP Debugging Tools

Advertisement

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 How To Debug PHP Code And Useful PHP Debugging Tools

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 How To Debug PHP Code And Useful PHP Debugging Tools

3. DBG

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

dbg How To Debug PHP Code And Useful PHP Debugging Tools

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 How To Debug PHP Code And Useful PHP Debugging Tools

5. Xdebug

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

xdebug extension How To Debug PHP Code And Useful PHP Debugging Tools

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 How To Debug PHP Code And Useful PHP Debugging Tools

6. MacGDBp

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

mac os php debugger How To Debug PHP Code And Useful PHP Debugging Tools

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.

apd How To Debug PHP Code And Useful PHP Debugging Tools

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.

sixrevisions php debug How To Debug PHP Code And Useful PHP Debugging Tools

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.

thinkvitamin php debug How To Debug PHP Code And Useful PHP Debugging Tools

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 How To Debug PHP Code And Useful PHP Debugging Tools

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 xdebug How To Debug PHP Code And Useful PHP Debugging Tools

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.

phpdebug DBG How To Debug PHP Code And Useful PHP Debugging Tools

Advertisement

There are 14 comments for this article
  1. Pingback: [User Link:How To Debug PHP Code And Useful PHP Debugging Tools] | Tips for Designers and Developers | tripwire magazine
  2. WebTechWise at 3:49 pm

    Excellent tutorial collection. Which debugger is the easiest to start with?

  3. James at 6:04 pm

    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!

  4. Zeeshan Rasool at 5:47 pm

    NuSphere is my choice as it is very easy to debug and has full control over php script execution.

  5. Pingback: Weekly Design News – Resources, Tutorials and Freebies (N.34) - Speckyboy Design Magazine
  6. Pingback: Weekly Design News – Resources, Tutorials and Freebies (N.34) | DesignerLinks | Home to Web design news, jQuery Tutorials, CSS tutorials, Web Designing tutorials, JavaScript tutorials and more!
  7. Pingback: Weekly Design News – Resources, Tutorials and Freebies (N.34) « Film and entertainment
  8. Pingback: How To Debug PHP Code And Useful PHP Debugging Tools | Tools … | Source code bank
  9. Pingback: Weekly Design News – Resources, Tutorials and Freebies (N.34) | Master
  10. Pingback: 200+ More Useful Fresh Articles for Designers and Developers - tripwire magazine
  11. Sean Owens at 2:34 pm

    Another vote for Nusphere for php developers in Ireland !

  12. John Schlick at 2:54 am

    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.