Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to locate function in JavaScript files using Firebug

I'm trying to locate this function call myFooBar() that is referenced inline in some HTML but the page loads tons of JavaScripts and it's quite some work to search that function in each of those files. How can I locate in which JavaScript file this function lives using Firebug?

like image 356
bart Avatar asked Jan 20 '11 23:01

bart


1 Answers

  • Open the Script tab.
  • Type your function name in search box at top right of firebug (see spyglass).
  • You can use the next and previous buttons to jump between occurrences of the function.
  • The file name appears in the Script tab's bar, and changes for each occurrence.

By going to the script tab you are only searching js on the page, if you try this in the html or css tabs you will only be searching for occurrences of your entered text within those specific content types.

like image 111
Endophage Avatar answered Oct 12 '22 06:10

Endophage