-1

Is there a way to put breakpoints across all of the JS code?

For example, let's say I have some button and when I click on it some JS code gets executed, but I don't know what exact code or the file where that code is executed.

So if I put breakpoints on all of the code after I click on that button breakpoint will activate and I will know which code gets executed.

Can I do this or is there something similar?

2
  • What you're looking for is comprehensively covered here. stackoverflow.com/questions/23472334/… Commented Aug 31, 2018 at 22:15
  • 1
    And welcome to Stackoverflow Commented Aug 31, 2018 at 22:16

1 Answer 1

0

Instead of having to put breakpoints everywhere, you could look at the registered event listeners of your element. There you can see the file and line of its code, also by clicking on it, the chrome dev tools open that location.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.