C
C
Crash2014-06-25 20:01:05
JavaScript
Crash, 2014-06-25 20:01:05

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

10 answer(s)
M
Mike, 2014-06-25
Ross

Article how to use chrome devtools

I
Igor Alexandrovich, 2014-06-25
@tyanigor

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).

S
Sergey Andreev, 2014-06-26
@DragorWW

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.
Screen%2Bshot%2B2010-12-13%2Bat%2B9.14.5

A
Alexey, 2014-06-26
@rdifb0

Visual Event can help in your case.

P
Philip, 2014-06-25
@shcherbanich

Chrome, Console, Event Listeners

A
andreyqin, 2014-06-25
@andreyqin

Firebug + console.log();

D
Denis Morozov, 2014-06-25
@morozovdenis

visual studio can debug js like c++ and c#

D
Daria Redkina, 2014-06-25
@redroom

Mozilla has an extremely convenient debugger, with bugs, for checking the execution of the script.

I
ixon, 2014-06-25
@ixon

Every browser has a debugger that can be opened with Ctrl+Shift+J.

S
s9k, 2014-07-03
@s9k

Chrome DevTools course from Google itself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question