Reply to Re: stack tracing

Your name:

Reply:


Posted by gosha bine on 05/14/07 08:14

On 14.05.2007 02:06 Jon Slaughter wrote:
> 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
>
>

hi, look for debug_backtrace in manual

--
gosha bine

extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok

[Back to original 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

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