A
A
Alexander Shapoval2017-02-03 21:55:09
JavaScript
Alexander Shapoval, 2017-02-03 21:55:09

Is there a way to debug Javascript with "break at first line javascript" setting?

There is a very large file with functions. We need to find a function that is executed a couple of seconds after the page is loaded.
What program can be used to "break at first line javascript"? Tell me which way to dig. Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yarkov, 2017-02-03
@AlexanderShapoval

debugger;at the very beginning of the file, insert and search step by step

D
Dark Hole, 2017-02-03
@abyrkov

1. Open DevTools - F12
2. Go to the debugger tab
3. ???
4. PROFIT! We now have a full-fledged debugger

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question