FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Function that returns name of itself?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Function that returns name of itself? [message #169452 is a reply to message #169451] Mon, 13 September 2010 17:33 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
MikeB wrote:
> is there a function that one can use in (for example) an echo or print
> command for debugging that will return the name of the function?
>

name of WHAT function.

The function you are in?

Sort of stack tracer ;-)

I found it more useful to make a little 'errprint' function.

And print a number or a message in a little box at the corner of the
screen, using something like a scrollable div


So

errprint: OK- 1
errprint: done the dirty bit
errprint: OK-2
errprint: OK-3
errprint: Oh shit.

etc.

call it with e.g. errprint('OK-1')
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Job opening at RNT Labs Chandigarh
Next Topic: Something I have never seen before
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 16:04:38 GMT 2024

Total time taken to generate the page: 0.12764 seconds