简体   繁体   中英

How to find out the javascript source file name if we know the function name

I have been trying to find out a java script function source file name.

We need to figure out what java script is being executed when click a button. There is no embedded javascript in the jsp file.

I inspected that button element using firebug, we are calling a doSomething() function when we click this button.

Can anyone help me on how to find out the source file name of that doSomething() function?.

The closest thing I could find was this thread on SO, User 'pasx' was able to do get FileName and LineNumber on IE but not on Chrome/FF. Maybe this would help: How to get JavaScript caller function line number? How to get JavaScript caller source URL?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM