The debugger keyword
- Add the debugger word in your code where you want your breakpoint. Example:
// code before debugger; // code after
- Refresh the page (F5)
- The debugger should stop and open the source tab on the line of the debugger keyword.
Add a breakpoint
You may also add a breakpoint by right clicking on the script line.