Answer the question
In order to leave comments, you need to log in
How to effectively debug JavaScript code?
It happens that when finalizing someone else’s layout, you come across scripts scattered throughout the markup and you don’t understand well what is responsible for what. For example, you need to define a handler for a certain group of tags. What are effective debugging tools for such cases?
Answer the question
In order to leave comments, you need to log in
Use WebStorm. This is the best framework for JS.
If from a browser, Chrom and a standard debugger are better.
Firebug for FireFox is buggy. The last version is very buggy (I work every day).
in Crome DevTool, you can put handlers on dom, on changing content and changing attributes, and as soon as the script changes something, you will immediately turn on the debugger. Very comfortably.
Mozilla has an extremely convenient debugger, with bugs, for checking the execution of the script.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question