summaryrefslogtreecommitdiffstats
path: root/devtools/docs/user/debugger/how_to/breaking_on_exceptions/index.rst
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/docs/user/debugger/how_to/breaking_on_exceptions/index.rst')
-rw-r--r--devtools/docs/user/debugger/how_to/breaking_on_exceptions/index.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/devtools/docs/user/debugger/how_to/breaking_on_exceptions/index.rst b/devtools/docs/user/debugger/how_to/breaking_on_exceptions/index.rst
new file mode 100644
index 0000000000..56a5de4335
--- /dev/null
+++ b/devtools/docs/user/debugger/how_to/breaking_on_exceptions/index.rst
@@ -0,0 +1,20 @@
+======================
+Breaking on exceptions
+======================
+
+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>`:
+
+
+- Pause on exceptions
+- Pause on caught exceptions
+
+
+.. image:: version64ui.png
+ :alt: Screen shot showing "Pause on exceptions
+ :class: center
+
+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. Starting in Firefox 80, a disclosure triangle within the tooltip reveals a stack trace.
+
+.. image:: exception-tooltip-stacktrace.png
+ :alt: Screenshot of a tooltip for an exception
+ :class: center