Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Set a breakpoint

The following are different ways to set a breakpoint within the JavaScript code in the debugger.

  • in the source pane, click on the line number for the line you want to break at
  • in the source pane, activate the context menu while on the line you want to break at, and select "Add breakpoint"
  • in the source pane, highlight the line you want to break at and press Ctrl+B (Windows/Linux) or Command+B (Mac OS X)

Each breakpoint is shown in two places in the debugger:

The screenshot below shows breakpoints at lines 20 and 28 of the file. The breakpoint at line 20 has been hit:

Document Tags and Contributors

Tags: 
 Contributors to this page: wbamberg, rralian, Niutenisu
 Last updated by: wbamberg,