Sometimes, debugging with
console.log is not enough to find out what is
happening in the code, as
console.log prints only plain objects but neither
functions nor objects with circular references. Besides, it's possible you
may need to know the context and flow of the code.
typing the keyword
console.log in our files. But switching
between the browser and the editor to make changes can be annoying.