Home arrow PHP arrow Using the Xdebug Extension`s xdebug_call_function() Function

Using the Xdebug Extension`s xdebug_call_function() Function

Among the numerous PHP debugging libraries available these days on the web, there’s one that offers easy installation and a flat learning curve, along with powerful features that permit you to debug PHP applications with minor hassles. I'm talking about the Xdebug extension, of course, and in this second part of a seven-part series you'll learn how to use its xdebug_call_function () function.

  1. Using the Xdebug Extension`s xdebug_call_function() Function
  2. Review: the xdebug_call_file() and xdebug_call_line() functions
  3. Using the xdebug_call_function() function
  4. Testing the xdebug_call_function()
By: Alejandro Gervasio
Rating: starstarstarstarstar / 2
February 09, 2009

print this article




The Xdebug extension is a software package that will let you keep track of various useful debugging parameters. These include the state of the variables handled by your PHP programs, stack and functions calls, execution time of scripts and memory usage, and many more.

If you had the chance to read the first chapter of this series, then you have an idea of how to put the Xdebug extension to work for you, at least at a basic level. In that article, I explained how to install the library on a Windows-based web server, and developed a couple of hands-on examples that demonstrated how to use its "xdebug_call_file()" and "xdebug_call_line()" functions.

As you'll surely recall, the first of these functions was used to return the name of the file that called a method defined within a sample class, while the second one determined at which line of the script this call was made. Indeed, the combination of these functions permits you to perform basic debugging operations in PHP programs with remarkable simplicity.

The Xdebug extension comes equipped with many other functions, however, that allow you to debug PHP applications more deeply. Therefore, in this second article of the series, I'll be discussing how to use another useful function included with the extension, called "xdebug_call_function()," which as its name suggests, can be utilized for keeping track of the functions called by a PHP script.

Are you ready to learn how to use this handy function? Then click on the link that appears below and start reading!

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

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates


Dev Shed Tutorial Topics: