Is there a way to get the names of all the javascript function executed on a page?
something like
console.info(functionname)
As I am trying to fix some bugs on a customer’s page and all javascript function are sepreaded all over the website withing PHP files.
The name of the current function can be obtained via
arguments.callee.name. The name of any function is available in thenameproperty of the funciton reference.Use
console.trace()to print the current stack trace. That does not only print the current function name, but also the previous ones.If you want to get a string, containing the stack, have a look at How to get result of console.trace() as string in javascript with chrome or firefox?.