E
E
Elena2021-07-28 11:54:06
JavaScript
Elena, 2021-07-28 11:54:06

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

2 answer(s)
J
Jamaludin Osmanov, 2021-07-28
@jamalosm

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

S
Sergey Sokolov, 2021-07-28
@sergiks

Screw on the site, say Sentry

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question