JavaScript debugger are tools that let you debug your JavaScript code by pausing the execution at any time, step through the code and see what each variable available looks like at that moment.
JavaScript debuggers allow step debugging of JavaScript code. Using them you can set breakpoints within the code. When a line of code is executed, which has a breakpoint set for it, the execution stops at that line and allows to execute the code step by step.
While stepping through the code the debugger displays all variables available within the current stack frame and typically also allows you to set some watch expressions.
As one of the main use cases for JavaScript are web browsers, different browsers have integrated tools to debug JavaScript. These tools are:
- Chrome DevTools
- Web Inspector
- Firefox DevTools
- Firebug
- Opera Dragonfly (up to Opera 12.17)
- Internet Explorer Developer Tools
Furthermore IDE's like NetBeans or Eclipse also include debuggers for JavaScript.
See also