Connecting Tech Pros Worldwide Help | Site Map

Finding the location of the function

yehaimanish@gmail.com
Guest
 
Posts: n/a
#1: Jul 17 '05
To find out from where the particular function was called, we can use
debug_backtrace ( ) inside the function. Is there any way to find in
which the function is. I mean if there are large number of files in the
project and I want to find out where the function is.


................ code ...............

// where is the location of the function()

function()

................ code ...............

Chung Leong
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Finding the location of the function


debug_backtrace() does give you that information if I remember
correctly.

PagCal
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Finding the location of the function


yehaimanish@gmail.com wrote:[color=blue]
> To find out from where the particular function was called, we can use
> debug_backtrace ( ) inside the function. Is there any way to find in
> which the function is. I mean if there are large number of files in the
> project and I want to find out where the function is.
>
>
> ............... code ...............
>
> // where is the location of the function()
>
> function()
>
> ............... code ...............
>[/color]

http://us3.php.net/debug_backtrace

and see 'file' array argument returned.
chotiwallah
Guest
 
Posts: n/a
#4: Jul 17 '05

re: Finding the location of the function


see
http://groups-beta.google.com/group/...18b396e0caa80d

micha

chotiwallah
Guest
 
Posts: n/a
#5: Jul 17 '05

re: Finding the location of the function


oops, posted a wrong link

here's the right one:

http://groups-beta.google.com/group/...5ab1e664e396ac

micha

Closed Thread