index.rst (801B)
1 ====================== 2 Breaking on exceptions 3 ====================== 4 5 To instruct the debugger to pause on an `exception <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error>`_, tick these checkboxes in the :ref:`Breakpoints list <debugger-ui-tour-breakpoints-list>`: 6 7 8 - Pause on exceptions 9 - Pause on caught exceptions 10 11 12 .. image:: version64ui.png 13 :alt: Screen shot showing "Pause on exceptions 14 :class: center 15 16 When an exception occurs, the line where it occurs is highlighted in the source pane, with a squiggly red line under the problematic code. A tooltip describes the exception. A disclosure triangle within the tooltip reveals a stack trace. 17 18 .. image:: exception-tooltip-stacktrace.png 19 :alt: Screenshot of a tooltip for an exception 20 :class: center