Debugging With debugger;
You can automatically create a breakpoint in your code by adding the following line to your JavaScript: debugger;
. This will automatically create a breakpoint in the code when it is run with Developer Tools open.
Although useful for quickly adding breakpoints without having to find the line in the Developer Tools, be careful not to send code with debugger;
live.