How to debug javascript program

I cannot find a great way to debug javascript. I know firebug on firefox, but this is not the best way, I think. I want to set a breakpoint and trace program, but I can’t handle it. You know a good tool or how to trace a program.

+4
source share
6 answers

Firebug Extension for Firefox (yes, it also supports breakpoints) or the Webkit inspector built into Safari and Chrome by default.

Both offer JavaScript debugging / profiling and many other useful features.

+1
source

I find IE 8 Developer Tools (built into IE 8) and Visual Studio (2008, Express for free) - a great way to debug JavaScript - at least in an environment compatible with the above tools :-)

0
source

Chrome has some very good developer tools.

0
source

Add Debug Debugger into javascript code that will allow you to debug your browser console

function myFunction(){ //Some stuff debugger; //Debugging is automatically started from here //Some stuff } myFunction(); 
0
source

Source: https://habr.com/ru/post/1313153/


All Articles