| Posted by Jon Slaughter on 05/14/07 00:06 
Is there anything in php that lets me trace the call stack or do I have to implement something like that on my own?
 
 e.g., I could insert somethign like $callstack[sizeof($callstack)] =
 __FUNCTION__; at the top of every function and
 unset($callstack[sizeof($callstack)-1]);
 
 So that I could trace the to code to where an error occured and know the
 function "path" that created it. Of course its probalby not worth it if I
 have to clutter up all the code very every return statement will need to
 have that coupled with it.
 
 Thanks,
 Jon
  Navigation: [Reply to this message] |