Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

JavaScript program debugging


May 29, 2021 Article blog


Table of contents


When we write JavaScript projects, we do program debugging, and let's look at how to debug JavaScript programs.

Chrome Developer Tools:

  • Stop debugging breakpoints
  • Step-by-step debugging, not inside the function body
  • The same step-by-step debugging goes inside the function body
  • Jump out of the currently specified function
  • Disable all breakpoints without debugging

The alert() method

Print information directly in the browser debugger to visually see specific information on the page

We generally use console .log () because alert() can easily forget to delete, when using alert() for pop-up, the product online will reduce the user experience, we use console .log() to avoid this problem

That's all you need to know about JavaScript program debugging.