PHP
  Home arrow PHP arrow The X-debug Extension
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
PHP

The X-debug Extension
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 2
    2009-02-02


    Table of Contents:
  • The X-debug Extension
  • Getting started using the X-debug library
  • Keeping track of file calls with the X-debug extension
  • Working with the xdebug_call_line() function

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    The X-debug Extension
    ( Page 1 of 4 )

    If you program at all, you understand the necessity of debugging. Fortunately, depending on the language in which you program, you can find an assortment of tools to help you with this task. One very good debugging tool for PHP is the X-debug extension. This seven-part series will reveal its capabilities and help you add it to your programmer's toolbox.

    Introduction

    Without a doubt, debugging is one of the most important tasks that programmers have to tackle when developing both desktop and web-based applications. With PHP, this process can be accomplished more quickly because it’s an interpreted language.

    Even so, PHP itself contains a few simple mechanisms that permit you to debug programs at a basic level. For instance, by enabling the “error_reporting” and “display_errors” directives included within its php.ini file, and also by combining “echo” statements along with the popular “var_dump()” function, it’s possible to debug runtime errors with relative ease.

    However, there are certain situations that require a more sophisticated debugging process. In cases like these, it’s often necessary to verify other aspects of an application, aside from checking to see if a function is called in the correct sequence, or if a class actually produces the expected output.

    On these specific occasions, the ability to evaluate the status of certain variables, measure the time that a script takes to run, and even determine how and when a given class calls its different methods is a must. Naturally, the simplest way to perform a debugging process as detailed as this is to use a third-party library, which can be picked up from the great variety available nowadays.

    Even though there are plenty of debugging libraries that can be used in a pretty straightforward fashion with excellent results, there is one useful extension, called “X-debug” (http://x-debug.org) that combines good functionality, an easy learning curve and minimal installation requisites.

    So, in this series of articles I’ll be providing you with a brief overview of the main features that come bundled with the X-debug extension, so you can start using it quickly for debugging your own PHP applications with minor hassles.

    Now, with the preliminaries out of our way, it’s time to begin exploring the real capabilities of the X-debug package. Let’s jump in!



     
     
    >>> More PHP Articles          >>> More By Alejandro Gervasio
     

       

    PHP ARTICLES

    - Merging a File Split for FTP Upload using PHP
    - Getting Data from Yahoo Site Explorer Inboun...
    - Method Chaining: Adding More Selecting Metho...
    - How to Split a File During an FTP Upload Usi...
    - Expanding a Custom CodeIgniter Library with ...
    - Using the Yahoo Site Explorer Inbound Links ...
    - Building a CodeIgniter Custom Library with M...
    - Building an E-mini Trading System Using PHP ...
    - Completing the MySQL Class with Method Chain...
    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek