You are here: stack tracing « PHP Programming Language « IT news, forums, messages
stack tracing

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация