Re: Which file called the function?
| From: | Daniel Brown | Date: | Thu, 20 Dec 2007 14:53:21 +0000 |
| Subject: | Re: Which file called the function? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266156@lists.php.net to get a copy of this message | ||
On Dec 20, 2007 9:47 AM, Christoph Boget <jcboget@yahoo.com> wrote:
[snip!]
> I need it primarily for debugging purposes. I've got a single function
> that's called by several files. And instead of modifying all the files
> calling the function to add logging, it would be nice to just modify the
> function, adding logging only to it to also include what script called it.
>
>
> I know I can get the information from debug_backtrace but I figured there
> might be a better/easier way.
You probably want http://www.xdebug.org/.
--
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]
If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.