FlavorScape
FlavorScape

Reputation: 14309

How to get firebug profiler to show functions as non-anonymous

On a Mac, Firebug outputs proper function names in profiler mode. On a PC, allmost all functions are logged as 'anonymous'. In this instance, almost all the function calls are prototype methods. Is there a way to get at the function names on the PC version? A setting?

Here's the difference. You can see why the PC version is far inferior. This is profiling the exact same code! (Running FF 9, Latest stable Firebug) enter image description here

Upvotes: 11

Views: 1582

Answers (2)

Michael Lorton
Michael Lorton

Reputation: 44406

If nothing else works, you can always name the function:

var functionVariable = function nameVisibleToDebugger(parameters) {
 ...
}

Upvotes: 2

blong
blong

Reputation: 2713

I don't know, but I'd suggest posting to Firebug's user group: http://groups.google.com/group/firebug . Good luck!

Upvotes: 0

Related Questions