From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- .../user/debugger/set_an_xhr_breakpoint/index.rst | 33 +++++++++++++++++++++ .../debugger/set_an_xhr_breakpoint/xhr_break.png | Bin 0 -> 31460 bytes .../set_an_xhr_breakpoint/xhr_breakpoint.png | Bin 0 -> 5140 bytes 3 files changed, 33 insertions(+) create mode 100644 devtools/docs/user/debugger/set_an_xhr_breakpoint/index.rst create mode 100644 devtools/docs/user/debugger/set_an_xhr_breakpoint/xhr_break.png create mode 100644 devtools/docs/user/debugger/set_an_xhr_breakpoint/xhr_breakpoint.png (limited to 'devtools/docs/user/debugger/set_an_xhr_breakpoint') diff --git a/devtools/docs/user/debugger/set_an_xhr_breakpoint/index.rst b/devtools/docs/user/debugger/set_an_xhr_breakpoint/index.rst new file mode 100644 index 0000000000..e831df49f1 --- /dev/null +++ b/devtools/docs/user/debugger/set_an_xhr_breakpoint/index.rst @@ -0,0 +1,33 @@ +===================== +Set an XHR breakpoint +===================== + +An XHR (XMLHttpRequest) breakpoint breaks code execution when an XHR request is dispatched so that you can examine the current state of the program. You can break on all requests or on those that include a specific URL. To turn on the feature: + +1. Open the debugger +2. Click on "Pause on any URL" which acts as a wild card, causing the code to pause on any call, or, +3. Click the plus sign next to the XHR breakpoints header, enter the URL in which you are interested, and press :kbd:`Enter`. + +.. note:: + + If you enter a key word instead of a URL, code execution will pause on any call to a URL that contains that keyword. + +.. image:: xhr_breakpoint.png + :class: border + +When your code breaks on an XHR request, the right hand pane will have two additional sections: + +**Call stack** + The list of functions that were executed in order to get to the currently executing code. Click on an item in the call stack to jump to the associated line in the code display. + +**Scopes** + A list of the values that are in scope in the function, method, or event handler where the break occurred. + +.. image:: xhr_break.png + :class: border + + +Inline variable preview +*********************** + +New in Firefox 71, the :ref:`source pane ` now gives you an instant preview of the variables on each line of code you've stepped through. See :ref:`Set a breakpoint > Inline variable preview ` for more information. diff --git a/devtools/docs/user/debugger/set_an_xhr_breakpoint/xhr_break.png b/devtools/docs/user/debugger/set_an_xhr_breakpoint/xhr_break.png new file mode 100644 index 0000000000..3da3ad0a82 Binary files /dev/null and b/devtools/docs/user/debugger/set_an_xhr_breakpoint/xhr_break.png differ diff --git a/devtools/docs/user/debugger/set_an_xhr_breakpoint/xhr_breakpoint.png b/devtools/docs/user/debugger/set_an_xhr_breakpoint/xhr_breakpoint.png new file mode 100644 index 0000000000..ebdd338d39 Binary files /dev/null and b/devtools/docs/user/debugger/set_an_xhr_breakpoint/xhr_breakpoint.png differ -- cgit v1.2.3