Using the Debugger Keyword To Set A Breakpoint
You can use the debugger keyword to set a browser dev tool breakpoint from your code. This can be useful to stop execution and allow you to inspect your objects and debug your code.
Will produce this effect:
Read more about it here