Connecting Tech Pros Worldwide Help | Site Map

Finding the location of the function

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 01:30 PM
yehaimanish@gmail.com
Guest
 
Posts: n/a
Default Finding the location of the function

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 ...............


  #2  
Old July 17th, 2005, 01:30 PM
Chung Leong
Guest
 
Posts: n/a
Default Re: Finding the location of the function

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

  #3  
Old July 17th, 2005, 01:30 PM
PagCal
Guest
 
Posts: n/a
Default 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.
  #4  
Old July 17th, 2005, 01:30 PM
chotiwallah
Guest
 
Posts: n/a
Default Re: Finding the location of the function

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

micha

  #5  
Old July 17th, 2005, 01:30 PM
chotiwallah
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.