开发者

How to alert each function name from loaded js file?

开发者 https://www.devze.com 2023-04-01 01:57 出处:网络
I wonder, is there some way to console.log or alert running function name. I mean can I override all the function execution, and append something like console.log(this.arguments.callee.name from Mozil

I wonder, is there some way to console.log or alert running function name. I mean can I override all the function execution, and append something like console.log(this.arguments.callee.name from Mozilla's fi开发者_高级运维rebug console?


There is also JavaScript Deobfuscator that will log all function calls ("executed scripts"). Logging function names only will be hard however - most functions don't have names (anonymous functions assigned to object / object prototype properties).

0

精彩评论

暂无评论...
验证码 换一张
取 消