Answer the question
In order to leave comments, you need to log in
How to insert console.log in js file in browser?
Good day. They send me works of sites with errors, and I need to somehow catch these errors. How can I write console.log in the js file so that it works? Debugging doesn't help.
Answer the question
In order to leave comments, you need to log in
Unfortunately, there is no way to do this, only debugging.
The errors in the console have the entire path to the error, which allows you to go to a specific place in the code, where you can already set a breakpoint for debugging
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question