Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find where a JavaScript function is defined in Firefox Quantum's debugger?

If I know the name of a JavaScript function, or if I have a reference to a function (eg. in a callback) how can I find where that function is defined, when using the Firefox Quantum debugger.

In Firebug/Firefox debugger I used to be able to type the function name into the JS console, and it would print a little bit of info and I could click on that output and be taken to the function definition.

Now in Firefox Quantum if I click on the function name it expands in the console to show info about the function object.

enter image description here

The Chrome debugger still works the way Firebug/Firefox used to, but I end up needing to debug/test in both browsers.

like image 941
stuporglue Avatar asked Dec 04 '17 16:12

stuporglue


1 Answers

In your debugger tab hit ctrl + shift + f. This will open a search window where you can type in the funtion name. This way you will get every location the name appears. Now you just have to look out for a line like: function <name> () {

Or you type function <name> right away.

like image 175
404_DisplayName Avatar answered Oct 12 '22 23:10

404_DisplayName