Use the debugger statement to pause script execution

Help us make DevTools Tips better! Fill out this survey to tell us more about your DevTools habits and frustrations.

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.

The Sources panel in Edge, paused at a debugger statement.

See also