Reputation: 13407
I have this complicated slider that utilizes tons of animation. I'm trying to find what function is being called when the slider is triggered, so that I can assign an onClick even to an arbitrary link to activate the slider from outside the slider itself.
I've looked at the code though, and I'm at a loss where the function is. Also javascript console isnt logging anything. It would be nice to see what code is currently executing somehow. Is this possible?
Thanks!
Upvotes: 0
Views: 643
Reputation: 359816
One way to do this is with the Timeline tab. Make sure that only the Scripting checkbox is checked:
You'll need to click the "Record" button to start and stop collecting information.
Upvotes: 5
Reputation: 6725
You can hit the pause button (under the scripts tab) that will allow you to step through the code. If code is running when you hit it, it will stop it at the next (debuggable) running line.
Upvotes: 1