Skip navigation.

exploreopera

| Help

Sign up | Help

nice stack, Firebug

, ,

One of the nice UI features of Firebug is that it goes to great lengths to give functions a recognisable description.

Sometimes it even goes too far... :

Firebug stack

:smile: p: :smile:

Script formatter user JSEmployees anonymous are recruitment stars

Comments

avatar
haha, that is a pretty nice feature though...when it is working. P:

By kyleabaker, # 19. May 2008, 23:47:35

avatar
:smile:

it's probably using some simple regex string matching to find out the name of the function, something like:

.*function\s+(.*)\(

By d4n3, # 22. May 2008, 19:06:03

avatar
Now that i think about it, this could be used as a feature :smile:

You could use this to name anonymous inline functions in your code on the fly, something like this:

// function addToWaitList()
jQuery.readyList.push ( function () {return f...

So this function would (presumably) show up in the stack trace as addToWaitList instead of (no name) :smile:

By d4n3, # 22. May 2008, 19:30:16

Write a comment

You must be logged in to write a comment. if you're not a registered member, please sign up.