Our highest priority is to satisfy the customer through early and continuous delivery of valuable and working software.

Wednesday, May 30, 2007

Debugging php scripts - Xdebug

Want to debug your PHP scripts :) Use Xdebug.

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

The debug information that Xdebug can provide includes the following:

(1) stack and function traces in error messages with:
o full parameter display for user defined functions
o function name, file name and line indications
o support for member functions

(2) memory allocation

(3) protection for infinite recursions

Xdebug also provides:


(1) profiling information for PHP scripts
- Xdebug's Profiler is a powerful tool that gives you the ability to analyze your PHP code and determine bottlenecks or generally see which parts of your code are slow and could use a speed boost. The profiler offers a number of output modes, that are suited for a variety of tasks when analyzing code. Thus allowing you to select the output that would be most suited for your needs. Even output itself can be retrieved in number of ways to allow for maximum flexibility.

(2) script execution analysis

(3) capabilities to debug your scripts interactively with a debug client

Check for more details
http://www.xdebug.org

Link to documentation for Xdebug 2
http://www.xdebug.org/docs/

Download & install Xdebug for debugging your PHP scripts.
http://www.xdebug.org/docs/install

No comments:

Post a Comment