Hi,
Is it possible to generate a stack trace in PHP?
If an error occurs somewhere, often it is not enough to know which function the error occurred in; it is often necessary to know where this function was called, and where the function containing that call was called etc. Is this possible?
Thanks in advance!
Stack trace
Moderator: General Moderators
Re: Stack trace
Code: Select all
debug_backtrace();Re: Stack trace
Thanks. Typical nonsensical PHP function naming again. If it was properly called stacktrace, I would have found it.Zoxive wrote:Code: Select all
debug_backtrace();