Table of Contents

Javascript - How to work with the Browser debugger (Chrome, Firefox, …)

About

This article talks about the Javascript debugger present in the browser and shows you how to use it.

Steps by Step

The debugger keyword

The first and easiest way to use the browser debugger is to add inside your Javascript the debugger keyword.

Steps:

// code before
debugger;
// code after

Chrome Breakpoint

Add a breakpoint

You may also add a breakpoint by right clicking on the script line.