Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find the js file name of the function definition from given function name?

I have many external javascript files, now I have very difficult to find which .js file contain function definition of the given function name from inspect element console window.

I have tried the below
In the console window I have enter just the function name, the function definition is shown, but I can not find the function definition source .js file.

enter image description here

like image 278
Merbin Joe Avatar asked Dec 06 '25 18:12

Merbin Joe


1 Answers

use inspect(setcode).

From Devtools docu:

When passing a function to inspect, the function opens the document up in the Sources panel for you to inspect

like image 92
2 revs, 2 users 89%Peter Rader Avatar answered Dec 08 '25 12:12

2 revs, 2 users 89%Peter Rader