Re: Getting the Function name of the Calling Function- How ?



Tnx a lot pal..

On Oct 12, 7:13 pm, ZeldorBlat <zeldorb...@xxxxxxxxx> wrote:
On Oct 12, 9:41 am, Shyam Raj <thanash...@xxxxxxxxx> wrote:



I guess the Subject is a little ambiguos. I want to get the function
name which calls the target function.

Like

function xxx()
{
....
....
yyy(2,3);

}

function zzz()
{
....
yyy(5,6);
.....

}

function yyy($a,$ab)
{
...
...
echo "yyy() has been called by the function - ".$functionname;

}

Now how can I get the name of the function tat calls yyy().

This will be really useful for Error logging purposes.

<http://www.php.net/debug_backtrace>

If you're using this for anything other than debugging or error
logging it suggests a problem with your code.


.



Relevant Pages

  • Re: logging out directly after logging in
    ... >> logging in, the server automagically and immediatly ends the login by ... I've used psinfo, and your correct about your last assumption. ... Tnx again, Paul ...
    (microsoft.public.windows.server.general)
  • Re: using a different java version
    ... >> tnx for the advice. ... There are a lot of sophisticated debugging ... through' code execution, set breakpoints, ...
    (comp.lang.java.programmer)