The browser finds the location of all function declarations according to function keywords.

this is not simply searching for "function xxx" or "xxx: function" and "obj.xxx = function" in the code. In fact, I can now enter keywords in Chrome to search all js, but the search results are too many to see, and the possible breakpoints that I can pay attention to don"t stop. It"s too strange that I really can"t find where it is called or declared, and which file line number is the function body in the end

sometimes this search doesn"t work very well, and now there are a variety of JS compilation results, so I want to be able to find the line number of the code in which the browser loads this function name, but whether it is a global method or an internal function.

such as

(() => {
    o = {}
    functionNames = ["aa", "bb"]
    for(let i in functionNames){
        o[functionNames[i]] = new Function(builder)
    }
})()

Line 5 of the above code actually produces the methods with the names aa and bb. I just hope to enter the keyword bb through the browser and even find out the construction location of such a function

.

, in fact, I can now enter keywords in Chrome to search all js, but the search results are too many to see, and the possible breakpoints that I can pay attention to do not stop. It is too strange that I really can not find where it is called or declared, which file line number is the function body in the end

in addition, I also hope to be able to listen to the call of a function / method / local function through keywords, and all those involved in this name will stop

ask for advice ~

Jul.08,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bfa868-321f9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bfa868-321f9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?