Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 961
FlavorScape Avatar asked Jan 23 '12 21:01

FlavorScape


1 Answers

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

var functionVariable = function nameVisibleToDebugger(parameters) {
 ...
}
like image 117
Michael Lorton Avatar answered Sep 16 '22 14:09

Michael Lorton