DEV Community

kamau waweru
kamau waweru

Posted on

HIGH JS QUALITY CODE

DEBUGGING IN THE BROWSERJAVASCRIPT
Before writing more complex code, let’s talk about debugging.

Debugging is the process of finding and fixing errors within a script. All modern browsers and most other environments support debugging tools – a special UI in developer tools that makes debugging much easier. It also allows to trace the code step by step to see what exactly is going on.

We’ll be using Chrome here, because it has enough features, most other browsers have a similar process.
**

The “Sources” panel

**
Your Chrome version may look a little bit different, but it still should be obvious what’s there.

Open the example page in Chrome.
Turn on developer tools with F12 (Mac: Cmd+Opt+I).
Select the Sources panel.

Top comments (0)