DevTools Tips

Categories: Supported by:

Use the debugger statement to pause script execution

If you prefer to use console.log() statements rather than the JavaScript debugger because you find it difficult to set breakpoints in DevTools (or you can't), then you can use the debugger statement in JavaScript.

Screenshot of the Sources panel in Edge, paused at a debugger statement