Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Tracking a Stack of Function Calls with the Xdebug Extension
Mar 16, 2009 @ 18:14:19

On DevShed today the latest article in their XDebug series has been posted, a look at tracking the function call stack with help from functionality the extension provides.

Despite this inconvenience [pf not being able to get more in-depth], in this final part of the series, I’m going to show you how to work with a function of the library called "xdebug_get_function_stack()." This function can be used to keep track of the stack of function calls generated by a PHP script, in this manner completing this starting guide on this helpful extension.

After reviewing the script from the previous part (using xdebug_time_index) they get into this new function and what sort of output it provides. The stack is the trace of what functions and values were passed around in the script including information like the function name, parameters and the file it was in.

tagged: track stack function trace xdebug extension tutorial

Link:


Trending Topics: