I'm working on a new client's website that loads Javascript from a CDN so the Javascript is not embedded or inline with the webpage source. I would like to pause everytime getCurrentPosition()
is executed in order to determine which external JS file it is contained in.
I realize I could use other tools to do a string search through the contents of the JS files but I would rather keep to Chrome's debugging tools.
Should I be trying to create a watch expression or is there another way to pin down when and where a certain JS function is fired?
You can easily access any file within a current project or web page by pressing Cmd + P ( Ctrl + P ) when Chrome DevTools is open and searching for the name.
Use Ctrl+Shift+F and then type the word char. It will search in every scripts.
You can search in all files using Chrome DevTools. Find your function and debug it:
ctrl + shift + f
(Win) or cmd + option + f
(Mac)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With